Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tharun571 committed Jul 5, 2024
1 parent c306535 commit cea8bb0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/test_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,9 +911,18 @@ TEST_SUITE("xassist"){

StreamRedirectRAII redirect(std::cerr);

assist(line, cell);
try
{
assist(line, cell);

REQUIRE(redirect.getCaptured() == "Failed to open file for reading API key for model openai\nAPI key for model openai is not available.\n");

}
catch (const std::runtime_error& e)
{
REQUIRE(true);
}

REQUIRE(redirect.getCaptured() == "Failed to open file for reading API key for model openai\nAPI key for model openai is not available.\n");
}

TEST_CASE("gemini"){
Expand Down

0 comments on commit cea8bb0

Please sign in to comment.