fix: update delete_post endpoint to include db dependency and add initial tests for main route
All checks were successful
Build and Push to Private Registry / build (push) Successful in 9s
All checks were successful
Build and Push to Private Registry / build (push) Successful in 9s
This commit is contained in:
12
test_papi.py
Normal file
12
test_papi.py
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/env python3
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
import papi
|
||||
client = TestClient(papi)
|
||||
|
||||
|
||||
def test_read_main():
|
||||
response = client.get("/")
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"message": "Hello World"}
|
||||
Reference in New Issue
Block a user