We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c306535 commit cea8bb0Copy full SHA for cea8bb0
test/test_interpreter.cpp
@@ -911,9 +911,18 @@ TEST_SUITE("xassist"){
911
912
StreamRedirectRAII redirect(std::cerr);
913
914
- assist(line, cell);
+ try
915
+ {
916
+ assist(line, cell);
917
+
918
+ REQUIRE(redirect.getCaptured() == "Failed to open file for reading API key for model openai\nAPI key for model openai is not available.\n");
919
920
+ }
921
+ catch (const std::runtime_error& e)
922
923
+ REQUIRE(true);
924
925
- REQUIRE(redirect.getCaptured() == "Failed to open file for reading API key for model openai\nAPI key for model openai is not available.\n");
926
}
927
928
TEST_CASE("gemini"){
0 commit comments