File size: 732 Bytes
93bc171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
 /*************************************************************************
 *
 * 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