# tests ## Purpose Pytest suite for `codeberg_to_gitea_migrator`. ## Ownership Project maintainer (Alexander Kucera). ## Local Contracts - pytest `testpaths = ["tests"]` (root `pyproject.toml`). - Test files named `test_*.py`; test functions `test_*`. ## Work Guidance - `test_smoke.py` — package imports + version. - `test_refs.py` — `#NNN`/URL cross-reference rewrite + `NumberMap`. - `test_clients.py` — `ApiClient` pagination, param cleaning, 4xx handling, JSON POST, all via `httpx.MockTransport` (no network). - Keep tests network-free: never hit live Codeberg/Gitea from the suite. The end-to-end run is a manual CLI invocation, not a test. ## Verification - `pytest` from the repo root. ## Child DOX Index - No children.