We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f883d21 commit 7e57633Copy full SHA for 7e57633
tests/test_api.py
@@ -1,7 +1,6 @@
1
from fastapi.testclient import TestClient
2
from src.paste.main import app
3
from typing import Optional
4
-import os
5
6
client: TestClient = TestClient(app)
7
@@ -12,14 +11,16 @@ def test_get_health_route() -> None:
12
11
response = client.get("/health")
13
assert response.status_code == 200
14
+
15
def test_paste_api_route() -> None:
16
respose = client.post(
17
"/api/paste",
18
json={
19
"content": "Hello-World",
20
- }
+ },
21
)
22
paste_id = respose.text
23
assert respose.status_code == 201
24
25
26
print(paste_id)
0 commit comments