fastapi-gino-arq-uvicorn icon indicating copy to clipboard operation
fastapi-gino-arq-uvicorn copied to clipboard

Tests is missing

Open alexted opened this issue 4 years ago • 1 comments

What about tests? Do you have a plans to add any test examples?

alexted avatar Feb 29 '20 08:02 alexted

I haven't had the opportunity just yet - but do have plans to do so (please feel free to submit a PR).

I would prefer one of the following two options:

  • Recommended: HTTPX (an async replacement for requests) lets you mount a ASGI/WSGI application directly to a client instance. (API Reference)
  • FastAPI has a test client built into it, which directly subclasses Starlette's TestClient. To use this, you must add requests to your project.

leosussan avatar Mar 05 '20 00:03 leosussan