lime_db_app_config¶
Scope: function | Returns: AppConfig
The lime_db_app_config fixture provides the application configuration for the test database application. It holds two dictionaries — config for regular settings and secrets for sensitive values.
Default implementation¶
By default, the fixture returns an AppConfig with empty config and secrets.
Customization¶
Override lime_db_app_config directly to supply specific values for all tests in a module:
from lime_config import AppConfig
from munch import DefaultMunch
@pytest.fixture
def lime_db_app_config():
return AppConfig(
config=DefaultMunch.fromDict({"integration_url": "https://example.com"}),
secrets=DefaultMunch.fromDict({"api_key": "test-secret"}),
)
To change the configuration from within a single test instead, use set_app_config.