Fix last broken test

This commit is contained in:
Veronica Berglyd Olsen committed 2023-05-29 17:58:23 +02:00
1 parent af67f5081e
commit 652013b622
3 files changed
+30 -30

No files matched your search

+1 -1
View File
@@ -226,7 +226,7 @@ def testCoreProjectXML_ReadCurrent(monkeypatch, tstPaths, fncPath):
# Fail saving
with monkeypatch.context() as mp:
mp.setattr("pathlib.Path.write_bytes", causeOSError)
mp.setattr("xml.etree.ElementTree.ElementTree.write", causeOSError)
assert xmlWriter.write(data, packedContent, timeStamp, 1000) is False
assert str(xmlWriter.error) == "Mock OSError"