Skip to content

Example repo for the Why mocking sucks post illustrating testing FusionAuth with mocking vs with the development server.

Notifications You must be signed in to change notification settings

ritza-co/fusionauth-example-mock-testing-vs-dev-server

Repository files navigation

Example testing FusionAuth with Mocking vs Development Server

Example repo for the Why mocking sucks post illustrating testing FusionAuth with mocking vs with the development server.

Prerequisites

Test with Mocking

Use the following command to run mocked tests:

uv run pytest fusionauth_test_with_mocking.py

Test with FusionAuth Development server

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

About

Example repo for the Why mocking sucks post illustrating testing FusionAuth with mocking vs with the development server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages