summaryrefslogtreecommitdiffstats
path: root/tests/test_ollama_check_worker.py
blob: 3c575db581b8b14f3ab598e1be2db43638ab665e (plain)
1
2
3
4
5
6
7
8
9
10
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"