File size: 495 Bytes
395201c
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# import requests, json

# BASE_URL = 'http://localhost:8080'

# def test_hello_route():
#     data = {"model": "claude-instant-1", "messages": [{"role": "user", "content": "hey, how's it going?"}]}
#     headers = {'Content-Type': 'application/json'}
#     response = requests.get(BASE_URL, headers=headers, data=json.dumps(data))
#     print(response.text)
#     assert response.status_code == 200
#     print("Hello route test passed!")

# if __name__ == '__main__':
#     test_hello_route()