This repository has been archived on 2024-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
spud-py/tests/test_daemon.py
Marc Cataford 72200752d6
All checks were successful
/ Static Analysis (push) Successful in 56s
/ Tests (push) Successful in 45s
feat: add daemon command + dummy server setup
2024-04-13 01:28:48 -04:00

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