Files
papi-py/test_papi.py
stephen schuresko db783891c8
All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 10s
feat: add user and post management with CRUD operations; include tests for functionality
2025-02-17 20:51:46 -05:00

15 lines
262 B
Python

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