All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 33s
22 lines
368 B
Python
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
|
|
|
|
|