Skip to content

Commit

Permalink
broaden get_html test
Browse files Browse the repository at this point in the history
  • Loading branch information
gutoarraes committed Jun 18, 2024
1 parent 3db723f commit 6816b81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_google_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ def test_get_html(self):
search = GoogleSearch({"q": "Coffee", "location": "Austin,Texas"})
data = search.get_html()
self.assertGreater(len(data), 10)
self.assertIn("<html>", data)
self.assertIn("<html", data)

data = search.get_dict()
self.assertEqual(data["search_metadata"]["status"], "Success")
self.assertIsNone(data.get("error"))

@unittest.skipIf((os.getenv("API_KEY") == None), "no api_key provided")
def test_get_response(self):
Expand Down

0 comments on commit 6816b81

Please sign in to comment.