Testing
cattle_grid.testing
mocked_config
mocked_config(config: Dynaconf | dict)
overrides the configuration stored in global_container.config
with the value in dict, afterwards resets the original value.
Source code in cattle_grid/testing/__init__.py
cattle_grid.testing.fixtures
account_for_test
async
actor_for_test
async
actor_with_account
async
Fixture to create an actor with an account
Source code in cattle_grid/testing/fixtures.py
database_for_tests
async
loaded_config
sql_engine_for_tests
async
Provides the sql engine (as in memory sqlite) for tests