Skip to content

Commit ee3cb16

Browse files
committed
WIP
1 parent c7427cb commit ee3cb16

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

test/test_interpreter.cpp

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -889,34 +889,34 @@ TEST_SUITE("xinspect"){
889889
}
890890
}
891891

892-
TEST_SUITE("xassist"){
892+
// TEST_SUITE("xassist"){
893893

894-
TEST_CASE("model_not_found"){
895-
xcpp::xassist assist;
896-
std::string line = "%%xassist testModel";
897-
std::string cell = "test input";
894+
// TEST_CASE("model_not_found"){
895+
// xcpp::xassist assist;
896+
// std::string line = "%%xassist testModel";
897+
// std::string cell = "test input";
898898

899-
StreamRedirectRAII redirect(std::cerr);
899+
// StreamRedirectRAII redirect(std::cerr);
900900

901-
assist(line, cell);
901+
// assist(line, cell);
902902

903-
REQUIRE(redirect.getCaptured() == "Model not found.\n");
903+
// REQUIRE(redirect.getCaptured() == "Model not found.\n");
904904

905-
}
905+
// }
906906

907-
TEST_CASE("gemini_save"){
908-
xcpp::xassist assist;
909-
std::string line = "%%xassist gemini --save-key";
910-
std::string cell = "1234";
907+
// TEST_CASE("gemini_save"){
908+
// xcpp::xassist assist;
909+
// std::string line = "%%xassist gemini --save-key";
910+
// std::string cell = "1234";
911911

912-
assist(line, cell);
912+
// assist(line, cell);
913913

914-
std::ifstream infile("gemini_api_key.txt");
915-
std::string content;
916-
std::getline(infile, content);
914+
// std::ifstream infile("gemini_api_key.txt");
915+
// std::string content;
916+
// std::getline(infile, content);
917917

918-
REQUIRE(content == "1234");
919-
infile.close();
918+
// REQUIRE(content == "1234");
919+
// infile.close();
920920

921921
// StreamRedirectRAII redirect(std::cerr);
922922

@@ -925,19 +925,19 @@ TEST_SUITE("xassist"){
925925
// REQUIRE(!redirect.getCaptured().empty());
926926

927927
// std::remove("gemini_api_key.txt");
928-
}
928+
// }
929929

930-
TEST_CASE("gemini"){
931-
xcpp::xassist assist;
932-
std::string line = "%%xassist gemini";
933-
std::string cell = "hello";
930+
// TEST_CASE("gemini"){
931+
// xcpp::xassist assist;
932+
// std::string line = "%%xassist gemini";
933+
// std::string cell = "hello";
934934

935-
StreamRedirectRAII redirect(std::cerr);
935+
// StreamRedirectRAII redirect(std::cerr);
936936

937-
assist(line, cell);
937+
// assist(line, cell);
938938

939-
REQUIRE(!redirect.getCaptured().empty());
940-
}
939+
// REQUIRE(!redirect.getCaptured().empty());
940+
// }
941941

942942
// TEST_CASE("openai"){
943943
// xcpp::xassist assist;
@@ -962,4 +962,4 @@ TEST_SUITE("xassist"){
962962
// std::remove("openai_api_key.txt");
963963
// }
964964

965-
}
965+
// }

0 commit comments

Comments
 (0)