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(backend/copilot): add missing isinstance assertion in test

Zamil Majdyd896a1f9fa54
diff --git a/autogpt_platform/backend/backend/copilot/tools/ask_question_test.py b/autogpt_platform/backend/backend/copilot/tools/ask_question_test.py
index fcf915914f..0470540e28 100644
--- a/autogpt_platform/backend/backend/copilot/tools/ask_question_test.py
+++ b/autogpt_platform/backend/backend/copilot/tools/ask_question_test.py
@@ -198,6 +198,7 @@ async def test_execute_multiple_questions_ignores_single_params(
],
)
+ assert isinstance(result, ClarificationNeededResponse)
assert len(result.questions) == 1
assert result.questions[0].question == "Real question?"
assert result.questions[0].keyword == "real"