Skip to content

Commit

Permalink
Update buildcff2vf_test.py
Browse files Browse the repository at this point in the history
- adjust test to catch Error return from buildcff2vf
  • Loading branch information
josh-hadley committed Jul 1, 2023
1 parent 985b8dd commit c02a68d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/buildcff2vf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def test_bug1003(capfd):
temp_dir = get_temp_dir_path('bug1003var')
copytree(input_dir, temp_dir)
ds_path = os.path.join(temp_dir, 'bug1003.designspace')
runner(CMD + ['-o', 'd', f'_{ds_path}'])
with pytest.raises(subprocess.CalledProcessError):
runner(CMD + ['-o', 'd', f'_{ds_path}'])
captured = capfd.readouterr()
assert "The input set requires compatibilization" in captured.err

Expand Down

0 comments on commit c02a68d

Please sign in to comment.