Skip to content

Testing

Tests

Setting up the test

uv pip install -e .
uv run pytest -v

Generating

uv run pytest --cov-report=html

Markers

  • datatypes: Unit tests for all datatypes together.
  • integer: All integer related tests, generator + pydantic integration.
  • boolean: All boolean related tests, generator + pydantic integration.
  • string: All string related tests, generator + pydantic integration.
  • float: All float related tests, generator + pydantic integration.
  • uuid: All UUID related tests, generator + pydantic integration.
  • datetime: All datetime related tests, generator + pydantic integration.
  • pyfake: All pyfake core modules (engine, generators, api (Pyfake class))
  • api: Tests for the main Pyfake class
  • registry: All pyfake registry GeneratorRegistry() related tests.