More graceful browsing error handling (#3494)

This commit is contained in:
James Collins
2023-04-28 14:12:47 -07:00
committed by GitHub
parent aa3e37ac14
commit 92009ceb32
2 changed files with 20 additions and 1 deletions

View 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