From db8986b1cb463649281a08ffdbd31972156dc2c6 Mon Sep 17 00:00:00 2001 From: Indrajith Indraprastham Date: Thu, 13 Jun 2024 03:07:51 +0530 Subject: [PATCH] fix failing test on test_start --- tests/test_crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_crawler.py b/tests/test_crawler.py index a48d8f6..edc8e5a 100644 --- a/tests/test_crawler.py +++ b/tests/test_crawler.py @@ -63,7 +63,7 @@ def test_save_results() -> None: with patch("builtins.open", mock_open()) as mocked_file: spider.save_results() - mocked_file.assert_called_once_with("out.json", "w") + mocked_file.assert_called_once_with("out.json", "w", encoding='utf-8') @patch.object(Spider, "crawl")