AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix(test): Fix test that was being skipped because of missing async marker
Reinier van der Leer47dc5ad2207b
diff --git a/autogpts/autogpt/tests/integration/test_web_selenium.py b/autogpts/autogpt/tests/integration/test_web_selenium.pyindex dfdbb9e0f7..5a014efe14 100644--- a/autogpts/autogpt/tests/integration/test_web_selenium.py+++ b/autogpts/autogpt/tests/integration/test_web_selenium.py@@ -6,13 +6,14 @@ from autogpt.commands.web_selenium import BrowsingError, read_webpage@pytest.mark.vcr@pytest.mark.requires_openai_api_keyasync def test_browse_website_nonexistent_url(agent: Agent, patched_api_requestor: 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