From 385cce3144f5b239f0d32ee4ce615cc98a6ce8a0 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Fri, 11 Feb 2022 00:53:32 +0100 Subject: [PATCH] Flake8 shenanigans --- tests/modules/test_criteriaSorter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)