diff --git a/tests/accuracy/conftest.py b/tests/accuracy/conftest.py index b7fc4ed4..9b7b4571 100644 --- a/tests/accuracy/conftest.py +++ b/tests/accuracy/conftest.py @@ -47,5 +47,9 @@ def pytest_runtest_makereport(item, call): if result.when == "call": test_results = item.config.test_results + + if not test_results: + return + with Path("test_scope.json").open("w") as outfile: json.dump(test_results, outfile, indent=4)