Skip to content

Commit 7e57633

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f883d21 commit 7e57633

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from fastapi.testclient import TestClient
22
from src.paste.main import app
33
from typing import Optional
4-
import os
54

65
client: TestClient = TestClient(app)
76

@@ -12,14 +11,16 @@ def test_get_health_route() -> None:
1211
response = client.get("/health")
1312
assert response.status_code == 200
1413

14+
1515
def test_paste_api_route() -> None:
1616
respose = client.post(
1717
"/api/paste",
1818
json={
1919
"content": "Hello-World",
20-
}
20+
},
2121
)
2222
paste_id = respose.text
2323
assert respose.status_code == 201
2424

25+
2526
print(paste_id)

0 commit comments

Comments
 (0)