Skip to content
Snippets Groups Projects
Commit 7bc4541c authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Adjust constrains in the analyzer tests in test_cli.py.

parent 767fa339
No related branches found
No related tags found
1 merge request!18Several changes including chunking and expansion of examples.
Pipeline #19026 failed
...@@ -102,7 +102,7 @@ class TestCommandLineInterface(TestClass): ...@@ -102,7 +102,7 @@ class TestCommandLineInterface(TestClass):
with open(plugin_path, "w") as f: with open(plugin_path, "w") as f:
f.write(function_code) 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"] str(plugin_path), "-c", "zfp"]
mocker.patch("sys.argv", commands) mocker.patch("sys.argv", commands)
enstools.compression.cli.main() enstools.compression.cli.main()
...@@ -131,7 +131,7 @@ class TestCommandLineInterface(TestClass): ...@@ -131,7 +131,7 @@ class TestCommandLineInterface(TestClass):
with open(plugin_path, "w") as f: with open(plugin_path, "w") as f:
f.write(function_code) 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"] "-c", "sz"]
mocker.patch("sys.argv", commands) mocker.patch("sys.argv", commands)
enstools.compression.cli.main() enstools.compression.cli.main()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment