Skip to content

Commit

Permalink
Update texampleTests
Browse files Browse the repository at this point in the history
  • Loading branch information
vpapanasta committed May 14, 2024
1 parent 5341eb4 commit 996bca1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Binary file modified examples/AnalyzeScientificPapersUsingFunctionCalls.mlx
Binary file not shown.
9 changes: 4 additions & 5 deletions tests/texampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,16 @@

methods (TestClassSetup)
function saveEnvVar(testCase)
% Ensures key is not in environment variable for tests
openAIEnvVar = "OPENAI_KEY";
key = getenv(openAIEnvVar);
unsetenv(openAIEnvVar);
testCase.addTeardown(@(x) setenv(openAIEnvVar, x), key);
writelines("OPENAI_API_KEY="+key,".env");

testCase.addTeardown(@() delete(".env"));
testCase.addTeardown(@() unsetenv("OPENAI_API_KEY"));
end
end

methods(Test)
% Test methods

function testAnalyzeScientificPapersUsingFunctionCalls(~)
AnalyzeScientificPapersUsingFunctionCalls;
end
Expand Down

0 comments on commit 996bca1

Please sign in to comment.