From 7bc4541c8b2537ad0670e7b3af099925ec1c694f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Wed, 14 Jun 2023 16:10:39 +0200
Subject: [PATCH] Adjust constrains in the analyzer tests in test_cli.py.

---
 tests/test_cli.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/test_cli.py b/tests/test_cli.py
index 03adcb6..02dda22 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -102,7 +102,7 @@ class TestCommandLineInterface(TestClass):
         with open(plugin_path, "w") as f:
             f.write(function_code)
 
-        commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:.1", "--plugins",
+        commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:1e-5", "--plugins",
                     str(plugin_path), "-c", "zfp"]
         mocker.patch("sys.argv", commands)
         enstools.compression.cli.main()
@@ -131,7 +131,7 @@ class TestCommandLineInterface(TestClass):
         with open(plugin_path, "w") as f:
             f.write(function_code)
 
-        commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:4", "--plugins", str(plugin_path),
+        commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:1e-5", "--plugins", str(plugin_path),
                     "-c", "sz"]
         mocker.patch("sys.argv", commands)
         enstools.compression.cli.main()
-- 
GitLab