Skip to content

armgit / txtai

Public Imported from GitHub
0

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

Verify unit tests still need to be skipped

davidmezzetti34542006743b
diff --git a/test/python/testapi/testcluster.py b/test/python/testapi/testcluster.py
index 1151c247..f96f5d99 100644
--- a/test/python/testapi/testcluster.py
+++ b/test/python/testapi/testcluster.py
@@ -75,7 +75,7 @@ class RequestHandler(BaseHTTPRequestHandler):
self.wfile.flush()
[email protected](os.name == "nt", "TestCluster skipped on Windows")
+# @unittest.skipIf(os.name == "nt", "TestCluster skipped on Windows")
class TestCluster(unittest.TestCase):
"""
API tests for embeddings clusters
diff --git a/test/python/testextractor.py b/test/python/testextractor.py
index 6f81e34f..06a8e225 100644
--- a/test/python/testextractor.py
+++ b/test/python/testextractor.py
@@ -2,7 +2,7 @@
Extractor module tests
"""
-import platform
+# import platform
import unittest
from txtai.embeddings import Embeddings
@@ -81,7 +81,7 @@ class TestExtractor(unittest.TestCase):
answers = self.extractor([(question, question, question, False)], self.data)
self.assertIsNone(answers[0][1])
- @unittest.skipIf(platform.system() == "Darwin", "Quantized models not supported on macOS")
+ # @unittest.skipIf(platform.system() == "Darwin", "Quantized models not supported on macOS")
def testQuantize(self):
"""
Test qa extraction backed by a quantized model
diff --git a/test/python/testquantization.py b/test/python/testquantization.py
index 7289ee50..ebdb93b5 100644
--- a/test/python/testquantization.py
+++ b/test/python/testquantization.py
@@ -2,7 +2,7 @@
Quantization module tests
"""
-import platform
+# import platform
import unittest
from transformers import AutoModel
@@ -15,7 +15,7 @@ class TestQuantization(unittest.TestCase):
Quantization tests
"""
- @unittest.skipIf(platform.system() == "Darwin", "Quantized models not supported on macOS")
+ # @unittest.skipIf(platform.system() == "Darwin", "Quantized models not supported on macOS")
def testModel(self):
"""
Tests quantizing a model through HFModel.
@@ -25,7 +25,7 @@ class TestQuantization(unittest.TestCase):
model = model.prepare(AutoModel.from_pretrained("google/bert_uncased_L-2_H-128_A-2"))
self.assertIsNotNone(model)
- @unittest.skipIf(platform.system() == "Darwin", "Quantized models not supported on macOS")
+ # @unittest.skipIf(platform.system() == "Darwin", "Quantized models not supported on macOS")
def testPipeline(self):
"""
Tests quantizing a model through HFPipeline.
diff --git a/test/python/testtranslation.py b/test/python/testtranslation.py
index f8da8b29..6003f3e8 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