Skip to content

Commit e0b8b7e

Browse files
committed
fix: improve file path handling in test_dump using os.path.join
1 parent 6ab1698 commit e0b8b7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/memories/textual/test_general.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# TODO: Overcomplex. Use pytest fixtures instead of setUp/tearDown.
22
import json
3+
import os
34
import unittest
45
import uuid
56

@@ -455,9 +456,9 @@ def test_load(self):
455456

456457
def test_dump(self):
457458
"""Test dump functionality for GeneralTextMemory."""
458-
test_dir = "/test/directory"
459+
test_dir = "test/directory"
459460
memory_filename = "textual_memory.json"
460-
memory_file_path = test_dir + "/" + memory_filename
461+
memory_file_path = os.path.join(test_dir, memory_filename)
461462

462463
# Set the config's memory_filename
463464
self.config.memory_filename = memory_filename

0 commit comments

Comments
 (0)