mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-24 01:14:22 +01:00
More graceful browsing error handling (#3494)
This commit is contained in:
11
tests/unit/test_web_selenium.py
Normal file
11
tests/unit/test_web_selenium.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
Reference in New Issue
Block a user