diff options
| author | Max Nanis | 2026-09-01 16:58:01 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-01 16:58:01 -0700 |
| commit | 4e9e08718884b1c4394d16055ba3f30c790ef8d0 (patch) | |
| tree | a8c0c40ac5ac92d90c7cdfdda31c34ddf1e62d79 /test_utils/managers/thl/conftest.py | |
| parent | fdfd6dbd2b71b0cf11741915620dca181fdc7bb0 (diff) | |
| download | generalresearch-4e9e08718884b1c4394d16055ba3f30c790ef8d0.tar.gz generalresearch-4e9e08718884b1c4394d16055ba3f30c790ef8d0.zip | |
Latest state for Django Migrations / Discussion
Diffstat (limited to 'test_utils/managers/thl/conftest.py')
| -rw-r--r-- | test_utils/managers/thl/conftest.py | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/test_utils/managers/thl/conftest.py b/test_utils/managers/thl/conftest.py index 391b74c..6e19bef 100644 --- a/test_utils/managers/thl/conftest.py +++ b/test_utils/managers/thl/conftest.py @@ -45,20 +45,7 @@ if TYPE_CHECKING: WallManager, ) - -@pytest.fixture(scope="session") -def thl_web_rr(django_db_factory: Callable[..., PostgresDsn]) -> PostgresConfig: - - return PostgresConfig( - dsn=django_db_factory("generalresearch.thl_django"), - connect_timeout=1, - statement_timeout=5, - ) - - -@pytest.fixture(scope="session") -def thl_web_rw(thl_web_rr: PostgresConfig) -> PostgresConfig: - return thl_web_rr +# === Msc === @pytest.fixture(scope="session") @@ -98,6 +85,25 @@ def thl_redis_config( @pytest.fixture(scope="session") +def thl_web_rr(django_db_factory: Callable[..., PostgresDsn]) -> PostgresConfig: + _dsn = django_db_factory("generalresearch.thl_django") + + return PostgresConfig( + dsn=_dsn, + connect_timeout=1, + statement_timeout=5, + ) + + +@pytest.fixture(scope="session") +def thl_web_rw(thl_web_rr: PostgresConfig) -> PostgresConfig: + return thl_web_rr + + +# === Managers === + + +@pytest.fixture(scope="session") def payout_event_manager( thl_web_rw: PostgresConfig, thl_redis_config: RedisConfig ) -> PayoutEventManager: |
