Skip to content

Commit fade391

Browse files
authored
chore(tests): skip test_scope.json file creation when not needed (#437)
1 parent 3b9871e commit fade391

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/accuracy/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,9 @@ def pytest_runtest_makereport(item, call):
4747

4848
if result.when == "call":
4949
test_results = item.config.test_results
50+
51+
if not test_results:
52+
return
53+
5054
with Path("test_scope.json").open("w") as outfile:
5155
json.dump(test_results, outfile, indent=4)

0 commit comments

Comments
 (0)