Skip to content

Commit

Permalink
fix failing test on test_start
Browse files Browse the repository at this point in the history
  • Loading branch information
indrajithi committed Jun 12, 2024
1 parent e17aba9 commit db8986b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit db8986b

Please sign in to comment.