Skip to content

Commit

Permalink
adding test get endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaLeylavergne committed Mar 5, 2024
1 parent 944b608 commit de79879
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test_get.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from fastapi.testclient import TestClient
from main import app
#import sys
# sys.path.append(r'C:\Users\andre\deploy_azure_def')


client = TestClient(app)

def test_read_root():
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"message": " Hello, World 3.11"}

0 comments on commit de79879

Please sign in to comment.