コード例 #1
0
ファイル: test_handlers.py プロジェクト: xinluh/mlflow
def test_health():
    with app.test_client() as c:
        response = c.get("/health")
        assert response.status_code == 200
        assert response.get_data().decode() == "OK"
コード例 #2
0
def test_client(app):
    with app.test_client() as c:
        yield c