Tests search_on_web with Google search engine.
()
| 6 | |
| 7 | |
| 8 | def test_google_search(): |
| 9 | """Tests search_on_web with Google search engine.""" |
| 10 | results = search_on_web("test query", search_engine="Google", max_results=2) |
| 11 | assert len(results) == 2 |
| 12 | # You can further assert if the results actually contain 'test query' in the title/snippet using additional libraries |
| 13 | |
| 14 | |
| 15 | def test_bing_search(): |
nothing calls this directly
no test coverage detected