diff --git a/tests/test_contentargparser.py b/tests/test_contentargparser.py index 49138d5..5157158 100644 --- a/tests/test_contentargparser.py +++ b/tests/test_contentargparser.py @@ -183,6 +183,6 @@ def validateFileContent(content): parser.updateArgs(args) parser.updateFileWithPostId("1000") - mock_open.assert_called_with(theFile.name, "w") + mock_open.assert_called_with(theFile.name, "w", encoding='utf-8') fileHandle.flush.assert_called() fileHandle.write.assert_called()