Spaces:
Build error
Build error
Download tests/unit/test_web_selenium.py from LolorzoloL/AutoGPTWeb: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/spaces/LolorzoloL/AutoGPTWeb/resolve/main/tests/unit/test_web_selenium.py
- Command line
-
hf download hf://spaces/LolorzoloL/AutoGPTWeb/tests/unit/test_web_selenium.py
-
curl -L -o test_web_selenium.py https://huggingface.co/spaces/LolorzoloL/AutoGPTWeb/resolve/main/tests/unit/test_web_selenium.py
332 Bytes
| from autogpt.commands.web_selenium import browse_website | |
| def test_browse_website(): | |
| url = "https://barrel-roll.com" | |
| question = "How to execute a barrel roll" | |
| response, _ = browse_website(url, question) | |
| assert "Error" in response | |
| # Sanity check that the response is not too long | |
| assert len(response) < 200 | |