RegGPT-Back-End / tests /test_api.py
Hammaad
code refactor part 1 complete need to test
93bc171
raw
history blame
732 Bytes
"""
/*************************************************************************
*
* CONFIDENTIAL
* __________________
*
* Copyright (2024-2025) AI Labs, IronOne Technologies, LLC
* All Rights Reserved
*
* Author : Theekshana Samaradiwakara
* Description : Simple chains are stored in this file.
* CreatedDate : 10/10/2024
* LastModifiedDate : 10/10/2024
* Modified By : Theekshana Samaradiwakara
*************************************************************************/
"""
from fastapi.testclient import TestClient
from reggpt.server import app
client = TestClient(app)
def test_get_health():
response = client.get("/health")
assert response.status_code == 200
assert len(response.json()) >= 1