Spaces:
Sleeping
Sleeping
Claude commited on
Document how to run the new test suite
Browse files
README.md
CHANGED
|
@@ -13,3 +13,16 @@ pinned: true
|
|
| 13 |
# `SERPent`
|
| 14 |
|
| 15 |
`SERPent` provides a SERP / scrapping API for use by AI agents / projects.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
# `SERPent`
|
| 14 |
|
| 15 |
`SERPent` provides a SERP / scrapping API for use by AI agents / projects.
|
| 16 |
+
|
| 17 |
+
## Running tests
|
| 18 |
+
|
| 19 |
+
```
|
| 20 |
+
pip install -r requirements.txt -r requirements-dev.txt
|
| 21 |
+
playwright install chromium # if not already present on the machine
|
| 22 |
+
pytest
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
The suite mocks all outbound HTTP (via `respx`) and drives the Playwright-based
|
| 26 |
+
scrapers against local fixture HTML instead of live search engines - see
|
| 27 |
+
`tests/helpers.py` for how - so it runs fully offline and doesn't depend on,
|
| 28 |
+
or risk tripping, any site's anti-bot measures.
|