Testing your code

udata is a Python backend, so its test suite is a Pytest suite. Run it all with:

$ uv run pytest

You can launch a unique test too:

$ uv run pytest udata/tests/api/test_me_api.py -k test_get_profile

To launch tests with coverage report:

$ uv run inv cover

If you installed with pip instead, activate the virtualenv (source .venv/bin/activate) and drop the uv run prefix.

End-to-end tests

The web interface lives in cdata, which runs its own Playwright suite against a real udata started from this repository. A change here that alters the API can break it: see cdata’s CI workflow for the exact setup it expects.