Esempio n. 1
0
def test_client_calls_endpoint(spec_dict, config):
    app = Application(spec_dict, module=config.endpoint_base)
    client = Client(spec_dict, client=TestClient(app))
    response = client.dummy_test_endpoint()
    assert isinstance(response, OpenAPIResponse)
    assert response.data == b'{"foo":"bar"}'