Couple of typo on tests, and added an error check to reach 100% coverage.

This commit is contained in:
Maximilien Rigaut 2022-05-16 22:07:18 +02:00
parent 6217b9f43f
commit 0b888243e1
2 changed files with 6 additions and 1 deletions

View File

@ -74,3 +74,9 @@ def test_with_optionnals():
def test_return_values():
pass
def test_bad_header():
em = export.ExportManager("test", "test")
with pytest.raises(KeyError):
em(export.ExportRequest("structural_elements", "header", "", {}))

View File

@ -379,5 +379,4 @@ def test_early_tree(base_architecture):
assert os.path.exists(tree_file)
pp = preparser.PreParser(tree_file, env)
pp.make_import_list()
rich.print(pp.rich_tree())