summaryrefslogtreecommitdiffstats
path: root/tests/test_ollama_check_worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ollama_check_worker.py')
-rw-r--r--tests/test_ollama_check_worker.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_ollama_check_worker.py b/tests/test_ollama_check_worker.py
new file mode 100644
index 0000000..3c575db
--- /dev/null
+++ b/tests/test_ollama_check_worker.py
@@ -0,0 +1,11 @@
+from workers.ollama_check_worker import OllamaCheckWorker
+
+
+def test_worker_appends_api_tags_path():
+ w = OllamaCheckWorker("http://localhost:11434")
+ assert w._url == "http://localhost:11434/api/tags"
+
+
+def test_worker_strips_trailing_slash():
+ w = OllamaCheckWorker("http://localhost:11434/")
+ assert w._url == "http://localhost:11434/api/tags"