Files
Auto-GPT/tests/unit/test_web_selenium.py
2023-04-28 22:12:47 +01:00

12 lines
332 B
Python

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