Change write mode

This commit is contained in:
Darren Burns
2022-09-20 17:12:52 +01:00
parent 49abcbadfe
commit 56b7ec70b8

View File

@@ -120,7 +120,7 @@ def pytest_sessionfinish(
num_snapshot_tests=num_snapshot_tests,
now=datetime.utcnow(),
)
with open(snapshot_report_path, "wt") as snapshot_file:
with open(snapshot_report_path, "w+") as snapshot_file:
snapshot_file.write(rendered_report)
session.config._textual_snapshots = diffs