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 build script #805

davidmezzetti9739126a99f2
diff --git a/Makefile b/Makefile
index 064a375d..853c2801 100644
--- a/Makefile
+++ b/Makefile
@@ -33,9 +33,7 @@ test:
# Run tests while calculating code coverage
coverage:
coverage run -m unittest discover -v -k testann -s ${TEST_DIR}
- coverage run -m unittest discover -v -k testapi.testauthorization -k testapi.testcluster -s ${TEST_DIR}
- coverage run -m unittest discover -v -k testapi.testencoding -k testapi.testextension -s ${TEST_DIR}
- coverage run -m unittest discover -v -k testapi.testpipelines -s ${TEST_DIR}
+ coverage run -m unittest discover -v -k testapi -s ${TEST_DIR}
coverage run -m unittest discover -v -k testapp -s ${TEST_DIR}
coverage run -m unittest discover -v -k testarchive -s ${TEST_DIR}
coverage run -m unittest discover -v -k testcloud -s ${TEST_DIR}
@@ -50,7 +48,7 @@ coverage:
coverage run -m unittest discover -v -k testpipeline.testimage -s ${TEST_DIR}
coverage run -m unittest discover -v -k testpipeline.testllm -s ${TEST_DIR}
coverage run -m unittest discover -v -k testpipeline.testtext -s ${TEST_DIR}
- coverage run -m unittest discover -v -k testpipeline.testtrainer -s ${TEST_DIR}
+ coverage run -m unittest discover -v -k testpipeline.testtrain -s ${TEST_DIR}
coverage run -m unittest discover -v -k testscoring -s ${TEST_DIR}
coverage run -m unittest discover -v -k testserialize -s ${TEST_DIR}
coverage run -m unittest discover -v -k testvectors -s ${TEST_DIR}
diff --git a/test/python/testapi/testembeddings.py b/test/python/testapi/testapiembeddings.py
similarity index 98%
rename from test/python/testapi/testembeddings.py
rename to test/python/testapi/testapiembeddings.py
index 891ac084..4e05e4a6 100644
--- a/test/python/testapi/testembeddings.py
+++ b/test/python/testapi/testapiembeddings.py
@@ -59,13 +59,13 @@ embeddings:
path: sentence-transformers/nli-mpnet-base-v2
content: True
functions:
- - testapi.testembeddings.Elements
+ - testapi.testapiembeddings.Elements
- name: length
argcount: 1
- function: testapi.testembeddings.length
+ function: testapi.testapiembeddings.length
- name: ann
function: ann
- transform: testapi.testembeddings.transform
+ transform: testapi.testapiembeddings.transform
"""
# Configuration for RAG
diff --git a/test/python/testapi/testpipelines.py b/test/python/testapi/testapipipeline.py
similarity index 99%
rename from test/python/testapi/testpipelines.py
rename to test/python/testapi/testapipipeline.py
index 444e2593..a05b086f 100644
--- a/test/python/testapi/testpipelines.py
+++ b/test/python/testapi/testapipipeline.py
@@ -68,7 +68,7 @@ translation:
# pylint: disable=R0904
-class TestPipelines(unittest.TestCase):
+class TestPipeline(unittest.TestCase):
"""
API tests for pipelines.
"""
@@ -98,7 +98,7 @@ class TestPipelines(unittest.TestCase):
Create API client on creation of class.
"""
- cls.client = TestPipelines.start()
+ cls.client = TestPipeline.start()
cls.data = [
"US tops 5 million confirmed virus cases",
diff --git a/test/python/testapi/testworkflow.py b/test/python/testapi/testapiworkflow.py
similarity index 98%
rename from test/python/testapi/testworkflow.py
rename to test/python/testapi/testapiworkflow.py
index 422b3241..474a325f 100644
--- a/test/python/testapi/testworkflow.py
+++ b/test/python/testapi/testapiworkflow.py
@@ -44,8 +44,8 @@ workflow:
- action:
- labels
- nop
- initialize: testapi.testworkflow.TestInitFinal
- finalize: testapi.testworkflow.TestInitFinal
+ initialize: testapi.testapiworkflow.TestInitFinal
+ finalize: testapi.testapiworkflow.TestInitFinal
merge: concat
args:
- [[positive, negative], false, True]