subashpoudel commited on
Commit
9dba5c6
·
1 Parent(s): 51a5681

Fixed bug of test_api

Browse files
Files changed (1) hide show
  1. 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 root
3
 
4
- client = TestClient(root)
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("/")