Skip to content

Commit 7d79127

Browse files
committed
Check that coverage.json exists instead of asking for message in stdout
1 parent e223d0f commit 7d79127

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_run_in_pyodide_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def exercise_factorial(selenium):
105105
check=True,
106106
)
107107
assert result.returncode == 0
108-
assert result.stdout == "Wrote JSON report to coverage.json\n"
108+
assert (tmp_path / "coverage.json").exists()
109109

110110
coverage_json = json.loads((tmp_path / "coverage.json").read_text())
111111
file = coverage_json["files"][str(DUMMY_PKG_FILE.absolute())]

0 commit comments

Comments
 (0)