File size: 290 Bytes
0359012
 
 
 
 
 
 
 
9fd370e
 
0359012
9fd370e
1
2
3
4
5
6
7
8
9
10
11
12
13
# File: whisper.api/app/tests/test_api/__init__.py

from fastapi.testclient import TestClient
from app.main import app

client = TestClient(app)


def test_ping_main():
    response = client.get("/ping")
    assert response.status_code == 200
    assert response.json() == {"ping": "pong"}