Flake8 shenanigans
This commit is contained in:
parent
c5d46215d9
commit
385cce3144
|
|
@ -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)
|
||||
cldl(good_conf, bad_conf)
|
||||
|
|
|
|||
Loading…
Reference in New Issue