Moved coverage calls, why out_step is wrongly reported?
This commit is contained in:
parent
41c667cb1f
commit
437f922341
|
|
@ -252,6 +252,7 @@ def test_step_fail(test_dir, caplog, monkeypatch):
|
||||||
# We will patch subprocess.check_output to make rar fail
|
# We will patch subprocess.check_output to make rar fail
|
||||||
with monkeypatch.context() as m:
|
with monkeypatch.context() as m:
|
||||||
patch_functions(m)
|
patch_functions(m)
|
||||||
|
with context.cover_it(cov):
|
||||||
detect_kicad()
|
detect_kicad()
|
||||||
load_actions()
|
load_actions()
|
||||||
GS.set_pcb(ctx.board_file)
|
GS.set_pcb(ctx.board_file)
|
||||||
|
|
@ -263,7 +264,6 @@ def test_step_fail(test_dir, caplog, monkeypatch):
|
||||||
out.set_tree({})
|
out.set_tree({})
|
||||||
out.config()
|
out.config()
|
||||||
with pytest.raises(SystemExit) as e:
|
with pytest.raises(SystemExit) as e:
|
||||||
with context.cover_it(cov):
|
|
||||||
out.run('')
|
out.run('')
|
||||||
# Check we exited because rar isn't installed
|
# Check we exited because rar isn't installed
|
||||||
assert e.type == SystemExit
|
assert e.type == SystemExit
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue