bugfix dbcrud

This commit is contained in:
2024-12-04 13:21:19 +09:00
parent 6504d8d29f
commit c5c4f79e4f
9 changed files with 20 additions and 12 deletions

View File

@@ -1,4 +1,11 @@
def test_read_main(client):
import pytest
from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_read_main():
response = client.get("/api/v1")
assert response.status_code == 200
assert response.json() == {"message": "Hello World"}