Skip to content

Commit

Permalink
feat: adapting tests accordingly;
Browse files Browse the repository at this point in the history
  • Loading branch information
polux0 committed May 24, 2024
1 parent bd16ced commit b1b6506
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def test_extract_from_valid_pages(self):
test_pages = ["Python_(programming_language)", "OpenAI"]
documents = self.extractor.extract(page_ids=test_pages)
self.assertEqual(len(documents), len(mock_response))
self.mock_reader.load_data.assert_called_once_with(pages=test_pages)
self.mock_reader.load_data.assert_called_once_with(pages=test_pages,
auto_suggest=False)

def test_extract_no_pages(self):
"""
Expand All @@ -52,4 +53,5 @@ def test_handle_invalid_page_titles(self):

documents = self.extractor.extract(page_ids=invalid_pages)
self.assertEqual(len(documents), 0)
self.mock_reader.load_data.assert_called_with(pages=invalid_pages)
self.mock_reader.load_data.assert_called_with(pages=invalid_pages,
auto_suggest=False)

0 comments on commit b1b6506

Please sign in to comment.