Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Skip tests for Windows

davidmezzettieab2c9d02b50
diff --git a/test/python/testapi/testcluster.py b/test/python/testapi/testcluster.py
index f96f5d99..1151c247 100644
--- a/test/python/testapi/testcluster.py
+++ b/test/python/testapi/testcluster.py
@@ -75,7 +75,7 @@ class RequestHandler(BaseHTTPRequestHandler):
self.wfile.flush()
-# @unittest.skipIf(os.name == "nt", "TestCluster skipped on Windows")
[email protected](os.name == "nt", "TestCluster skipped on Windows")
class TestCluster(unittest.TestCase):
"""
API tests for embeddings clusters
diff --git a/test/python/testtranslation.py b/test/python/testtranslation.py
index 6003f3e8..f8da8b29 100644
--- a/test/python/testtranslation.py
+++ b/test/python/testtranslation.py
@@ -2,7 +2,7 @@
Translation module tests
"""
-# import os
+import os
import unittest
from txtai.pipeline import Translation
@@ -26,7 +26,7 @@ class TestTranslation(unittest.TestCase):
# Validate translation text
self.assertIsNotNone(translation)
- # @unittest.skipIf(os.name == "nt", "M2M100 skipped on Windows")
+ @unittest.skipIf(os.name == "nt", "M2M100 skipped on Windows")
def testM2M100Translation(self):
"""
Tests a translation using M2M100 models