moo.conftest

Support resources for PyTest framework.

Functions

configure_celery_for_tests()

mock_player_connected(monkeypatch)

Patch is_connected to return True for all objects during tests.

pytest_collection_modifyitems(config, items)

Add serialized_rollback=True to tx tests using the default dataset.

t_init(request)

Test fixture that pre-seeds a basic bootstrapped environment.

t_two_sites()

Bootstrap two independent universes (Site 1 + a second Site) and yield (site1, site2).

t_two_sites_default()

Like t_two_sites but loads the full default bootstrap on each site so the system-property graph ($root_class, $player, etc.) is populated.

t_wizard()

Test fixture that returns the Wizard account.

t_wizard_user_pk(t_wizard)

Django User PK for the Wizard avatar.