Moved coverage calls, why out_step is wrongly reported?

This commit is contained in:
Salvador E. Tropea 2021-02-04 16:20:57 -03:00
parent 41c667cb1f
commit 437f922341
1 changed files with 12 additions and 12 deletions

View File

@ -252,6 +252,7 @@ def test_step_fail(test_dir, caplog, monkeypatch):
# We will patch subprocess.check_output to make rar fail
with monkeypatch.context() as m:
patch_functions(m)
with context.cover_it(cov):
detect_kicad()
load_actions()
GS.set_pcb(ctx.board_file)
@ -263,7 +264,6 @@ def test_step_fail(test_dir, caplog, monkeypatch):
out.set_tree({})
out.config()
with pytest.raises(SystemExit) as e:
with context.cover_it(cov):
out.run('')
# Check we exited because rar isn't installed
assert e.type == SystemExit