15 lines
279 B
Python
15 lines
279 B
Python
import pytest
|
|
from fastapi.testclient import TestClient
|
|
|
|
import spud.daemon
|
|
|
|
|
|
@pytest.fixture(name="client")
|
|
def client_fixture():
|
|
return TestClient(spud.daemon.app)
|
|
|
|
|
|
def test_alive_returns_200(client):
|
|
response = client.get("/")
|
|
|
|
assert response.status_code == 200
|