mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
test: Add OpenAI API key to cleanup test
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -65,6 +65,7 @@ def test_memory_reset_with_missing_api_key(temp_db_dir):
|
||||
|
||||
def test_memory_reset_cleans_up_files(temp_db_dir):
|
||||
"""Test that memory reset properly cleans up database files."""
|
||||
os.environ["OPENAI_API_KEY"] = "test-key"
|
||||
memory = ShortTermMemory(path=str(temp_db_dir))
|
||||
memory.save("test memory", {"test": "metadata"})
|
||||
assert any(temp_db_dir.iterdir()) # Directory should have files
|
||||
|
||||
Reference in New Issue
Block a user