All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 8s
Co-authored-by: stephen schuresko <mynameisdeleted@gmail.com> Reviewed-on: https://192.168.1.134:3000/posts-api/papi-py/pulls/6
15 lines
262 B
Python
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"}
|
|
|
|
|