castlecraft_engineer.testing.command_bus
¶
castlecraft_engineer.testing.command_bus
¶
DummyCommandHandlerOnly(DummyCommandOnly)
¶
Provides a dummy CommandHandler class.
DummyCommandHandlerWithDependencyOnly(DummyCommandWithDependencyOnly, DummyDependencyOnly)
¶
Provides a dummy CommandHandler class with a dependency.
Source code in src/castlecraft_engineer/testing/command_bus.py
DummyCommandOnly()
¶
DummyCommandWithDependencyOnly()
¶
Provides a dummy Command class requiring a handler with dependency.
DummyDependencyOnly()
¶
clean_container_for_bus_tests()
¶
Provides a fresh, isolated punq container for each test by patching the global 'container' used by the CommandBus. Ensures test isolation for DI registrations.
Source code in src/castlecraft_engineer/testing/command_bus.py
command_bus_instance(clean_container_for_bus_tests)
¶
Provides a clean CommandBus instance for testing.