Testing

Test LongLink applications with standard pytest(opens in new tab) and pytest-asyncio(opens in new tab) workflows. Generated projects also include the dependencies needed by longlink.testing.TestClient.

To install the development dependencies, run:

Usage

You can execute all tests or target a specific test file using the LongLink test command. Arguments after longlink test are forwarded to pytest.

Example

LongLink applications are FastAPI applications, and longlink.testing.TestClient is a compatible facade over FastAPI's TestClient(opens in new tab). Use async pytest tests for lower-level async services when needed.