Example repo for the Why mocking sucks post illustrating testing FusionAuth with mocking vs with the development server.
Use the following command to run mocked tests:
uv run pytest fusionauth_test_with_mocking.py
In a new terminal run the following commands to start the FusionAuth development server configured with Kickstart.
cd fusionauth
docker compose up
In another terminal in the root directory of this project run the tests with the following command:
uv run pytest fusionauth_test_with_dev_server.py