Files
papi-py/test_papi.py
stephen schuresko b9bf105939
All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 33s
feat: update Dockerfile and Makefile for improved deployment; add integration testing instructions and version endpoint
2025-02-18 08:29:31 -05:00

22 lines
368 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"}
def test_read_version():
response = client.get("/version")
assert response.status_code == 200