Commit 4b04022f authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

[lib] Test: remove temp file during tear down

parent c895b7a4
...@@ -133,6 +133,9 @@ def test_SCC_search(feed_SCC_model): ...@@ -133,6 +133,9 @@ def test_SCC_search(feed_SCC_model):
expected_lines = set(model_without_scc.split("\n")) expected_lines = set(model_without_scc.split("\n"))
with open(model_with_scc.name[:-4] + "_without_scc.bcx", "r") as file: filepath = model_with_scc.name[:-4] + "_without_scc.bcx"
with open(filepath, "r") as file:
found_lines = set(file.read().split("\n")) found_lines = set(file.read().split("\n"))
assert found_lines == expected_lines assert found_lines == expected_lines
os.remove(filepath)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment