Commit graph

17 commits

Author SHA1 Message Date
Paul Gauthier (aider)
9b4ee190ba style: Reorder imports in test_scrape.py 2024-08-28 22:50:31 -07:00
Paul Gauthier (aider)
7b36d1f0d3 feat: implement retry mechanism for scraping badssl.com 2024-08-28 22:50:28 -07:00
Paul Gauthier
714c991230 test: remove unnecessary paginate parameter in cmd_web test 2024-08-27 14:10:56 -07:00
Paul Gauthier (aider)
43587304a6 feat: add tests for text/plain and text/html content handling 2024-08-10 06:07:18 -07:00
Paul Gauthier (aider)
6c38766c92 fix: Update test for scrape method with correct mocking 2024-08-10 06:06:19 -07:00
Paul Gauthier
11820ba6c1 Don't paginate cmd_web/diff except as / commands 2024-08-09 17:29:52 -04:00
Paul Gauthier
5bf9dbb226 Fix test for self-signed url scrape 2024-07-28 16:49:32 -03:00
Paul Gauthier (aider)
a03506046c Add test to fetch self-signed SSL site with and without verification 2024-07-28 16:37:47 -03:00
Paul Gauthier (aider)
b9d6fd16fc Added a test case for error handling in the scrape_with_playwright method. 2024-07-25 20:27:24 +02:00
Paul Gauthier (aider)
44376ee382 Added the print_error not called check in the test_cmd_web_imports_playwright method. 2024-07-23 11:45:17 +02:00
Paul Gauthier (aider)
f99dbc2c43 Replaced mocked Playwright usage with real Playwright implementation in the test suite. 2024-07-23 11:43:14 +02:00
Paul Gauthier (aider)
8a73346f66 Added a test to scrape an actual URL with Playwright and ensured that Scraper.print_error is never called in any of the scraper tests. 2024-07-23 11:42:01 +02:00
Paul Gauthier
96b1e1d04f finished scrape tests 2024-07-16 11:27:27 +01:00
Paul Gauthier (aider)
d5a258356b Mocked the aider.scraper.Scraper.scrape method in the test_cmd_web_imports_playwright test. 2024-07-16 11:14:29 +01:00
Paul Gauthier
d41f07b024 Refactored the test_cmd_web_imports_playwright test to capture stdout and assert that the example.com content was scraped. 2024-07-16 11:12:59 +01:00
Paul Gauthier (aider)
74f4bd106a Implemented a test for the cmd_scrape command that ensures playwright can be imported after running cmd_web. 2024-07-16 11:11:17 +01:00
Paul Gauthier (aider)
3e7663e914 Added a test for the cmd_web command to ensure that playwright can be imported after running the command. 2024-07-16 11:08:33 +01:00