-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
raikarn
committed
Aug 14, 2024
1 parent
55ef605
commit f3702e5
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import os | ||
import sys | ||
|
||
from fastapi.testclient import TestClient | ||
|
||
from backend.main import app | ||
|
||
sys.path.append(os.getcwd()) | ||
|
||
|
||
client = TestClient(app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
from tests import client | ||
|
||
|
||
@pytest.mark.health | ||
def test_check_health(): | ||
"""Checks if Aora is up and running""" | ||
|
||
get_response = client.get("/health") | ||
assert get_response.status_code == 200 | ||
assert get_response.json()["status"] == "Active" |