Files
papi-py/test_papi.py
steve 5357888fab
All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 8s
qa (#6)
Co-authored-by: stephen schuresko <mynameisdeleted@gmail.com>
Reviewed-on: https://192.168.1.134:3000/posts-api/papi-py/pulls/6
2025-02-17 22:38:25 -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"}