Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Update test

davidmezzettie2a037e221de
diff --git a/test/python/testscoring.py b/test/python/testscoring.py
index 49f1f4fe..668cf5e3 100644
--- a/test/python/testscoring.py
+++ b/test/python/testscoring.py
@@ -147,6 +147,10 @@ class TestScoring(unittest.TestCase):
index = os.path.join(tempfile.gettempdir(), "scoring")
os.makedirs(index, exist_ok=True)
+ # Create file to test replacing existing file
+ with open(f"{index}.terms", "w", encoding="utf-8") as f:
+ f.write("TEST")
+
# Save scoring instance
scoring.save(f"{index}/{name}")