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"