general_fixtures#

Non specific fixtures for use across all tests.

This fixture is accessible to all tests due to its inclusion in conftest.py.

see: https://docs.pytest.org/en/6.2.x/fixture.html




Functions#

dynamo_client

make_app

Create an default instance of an app.

dynamo_client()#

tests.fixtures.general_fixtures.dynamo_client(dynamo_db_service: rootski.services.database.dynamo.db_service.DBService, disable_auth: bool, act_as_admin: bool) starlette.testclient.TestClient[source]#

make_app()#

tests.fixtures.general_fixtures.make_app(disable_auth=True, config_override: Optional[rootski.config.config.Config] = None) fastapi.applications.FastAPI[source]#

Create an default instance of an app.

Parameters

enable_auth – if False, disable auth so that all requests are made by the global test user.