Skip to content

Commit a63952c

Browse files
committed
Fix formatting
1 parent f29e629 commit a63952c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from fastapi import FastAPI
55
from app.api import users
66

7-
log_format = '%(asctime)s | %(levelname)-8s | %(name)-12s - %(message)s'
7+
log_format = "%(asctime)s | %(levelname)-8s | %(name)-12s - %(message)s"
88
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format=log_format)
99

1010
app = FastAPI(title="Python FastAPI Template", version="0.1.0")

tests/api/test_users.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88
async def test_create_user():
99
transport = httpx.ASGITransport(app=app)
1010
async with httpx.AsyncClient(transport=transport, base_url="http://test") as ac:
11-
response = await ac.post("/api/v1/users/", json={"name": "Simone", "email": "simone@example.com"})
11+
response = await ac.post(
12+
"/api/v1/users/", json={"name": "Simone", "email": "simone@example.com"}
13+
)
1214
assert response.status_code == 200
1315
data = response.json()
1416
assert data["name"] == "Simone"
1517
assert data["email"] == "simone@example.com"
1618

19+
1720
@pytest.mark.asyncio
1821
async def test_get_users():
1922
transport = httpx.ASGITransport(app=app)

0 commit comments

Comments
 (0)