Skip to content

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 setup tests

Reinier van der Leerfc9689b000cf
diff --git a/autogpts/autogpt/tests/integration/test_setup.py b/autogpts/autogpt/tests/integration/test_setup.py
index 400886fa80..3c66e257f2 100644
--- a/autogpts/autogpt/tests/integration/test_setup.py
+++ b/autogpts/autogpt/tests/integration/test_setup.py
@@ -47,7 +47,7 @@ async def test_interactively_revise_ai_settings(config: Config):
)
user_inputs = [
- "y",
+ "n",
"New AI",
"New Role",
"NewConstraint",
@@ -56,8 +56,9 @@ async def test_interactively_revise_ai_settings(config: Config):
"",
"NewBestPractice",
"",
+ "y",
]
- with patch("autogpt.app.utils.clean_input", side_effect=user_inputs):
+ with patch("autogpt.app.setup.clean_input", side_effect=user_inputs):
ai_profile, directives = await interactively_revise_ai_settings(
ai_profile, directives, config
)