aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/tests/integration/test_web_selenium.py
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/autogpt/tests/integration/test_web_selenium.py')
-rw-r--r--autogpts/autogpt/tests/integration/test_web_selenium.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/autogpts/autogpt/tests/integration/test_web_selenium.py b/autogpts/autogpt/tests/integration/test_web_selenium.py
index dfdbb9e0f..1d904b855 100644
--- a/autogpts/autogpt/tests/integration/test_web_selenium.py
+++ b/autogpts/autogpt/tests/integration/test_web_selenium.py
@@ -6,13 +6,12 @@ from autogpt.commands.web_selenium import BrowsingError, read_webpage
@pytest.mark.vcr
@pytest.mark.requires_openai_api_key
-async def test_browse_website_nonexistent_url(
- agent: Agent, patched_api_requestor: None
-):
+@pytest.mark.asyncio
+async def test_browse_website_nonexistent_url(agent: Agent, cached_openai_client: None):
url = "https://auto-gpt-thinks-this-website-does-not-exist.com"
question = "How to execute a barrel roll"
- with pytest.raises(BrowsingError, match=r"NAME_NOT_RESOLVED") as raised:
+ with pytest.raises(BrowsingError, match="NAME_NOT_RESOLVED") as raised:
await read_webpage(url=url, question=question, agent=agent)
# Sanity check that the response is not too long