Spaces:
Sleeping
Sleeping
Commit
·
9dba5c6
1
Parent(s):
51a5681
Fixed bug of test_api
Browse files- tests/test_api.py +2 -2
tests/test_api.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from fastapi.testclient import TestClient
|
| 2 |
-
from api.main import
|
| 3 |
|
| 4 |
-
client = TestClient(
|
| 5 |
|
| 6 |
def test_root():
|
| 7 |
response = client.get("/")
|
|
|
|
| 1 |
from fastapi.testclient import TestClient
|
| 2 |
+
from api.main import app
|
| 3 |
|
| 4 |
+
client = TestClient(app)
|
| 5 |
|
| 6 |
def test_root():
|
| 7 |
response = client.get("/")
|