diff --git a/tests/modules/test_criteriaSorter.py b/tests/modules/test_criteriaSorter.py index b4aa606..6a72578 100644 --- a/tests/modules/test_criteriaSorter.py +++ b/tests/modules/test_criteriaSorter.py @@ -122,6 +122,7 @@ def test_action_cancel(monkeypatch, list_of_cancels, result_expected, capsys): cldl(cancel_file) + @pytest.mark.parametrize("verbose", [0, 1, 2, 3, 4]) def test_action_list(verbose, capsys): args = ["-"+"v"*verbose]+["list"] if verbose else ["list"] @@ -149,6 +150,7 @@ def test_action_list_error(args, error, caplog, monkeypatch): assert error in caplog.text cldl(no_conf) + def test_load_config(): good_conf = tempfile.NamedTemporaryFile(mode="w", suffix=".yaml", delete=False) with open(good_conf.name, "w") as f: @@ -202,4 +204,4 @@ def test_load_config_error(): conf = criteriaSorter.load_config(bad_conf.name) criteriaSorter.load_operations("default_operation", conf) - cldl(good_conf, bad_conf) \ No newline at end of file + cldl(good_conf, bad_conf)