mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-23 17:04:21 +01:00
Fix test_web_selenium (#4554)
This commit is contained in:
14
tests/integration/test_web_selenium.py
Normal file
14
tests/integration/test_web_selenium.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pytest_mock import MockerFixture
|
||||
|
||||
from autogpt.commands.web_selenium import browse_website
|
||||
from autogpt.config import Config
|
||||
|
||||
|
||||
def test_browse_website(config: Config, patched_api_requestor: MockerFixture):
|
||||
url = "https://barrel-roll.com"
|
||||
question = "How to execute a barrel roll"
|
||||
|
||||
response = browse_website(url, question, config)
|
||||
assert "Error" in response
|
||||
# Sanity check that the response is not too long
|
||||
assert len(response) < 200
|
||||
Reference in New Issue
Block a user