From b3249f939f9cc208307e74d0e50c4d785cff2741 Mon Sep 17 00:00:00 2001 From: Raghu Rajagopalan Date: Tue, 11 Sep 2018 11:25:55 +0530 Subject: [PATCH] fix test --- tests/test_contentargparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()