Newer
Older
cortex-hub / ai-hub / tests / api / routes / test_general.py
def test_read_root(client):
    """Tests the root endpoint for a successful response."""
    test_client, _ = client
    response = test_client.get("/")
    assert response.status_code == 200
    assert response.json() == {"status": "AI Model Hub is running!"}