Files
papi-py/test_papi.py
stephen schuresko 4fd9fc6221
All checks were successful
Build and Push to Private Registry / build (push) Successful in 9s
fix: update delete_post endpoint to include db dependency and add initial tests for main route
2025-02-16 17:26:28 -05:00

12 lines
251 B
Python

#!/bin/env python3
from fastapi.testclient import TestClient
import papi
client = TestClient(papi)
def test_read_main():
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"message": "Hello World"}