diff options
| author | stuppie | 2026-09-04 12:54:13 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-04 12:54:13 -0600 |
| commit | f8f1f07b193845d92c7f6ef8ae95b9696db6330f (patch) | |
| tree | c27e9d60dd6f71d309ef5c3f992d29500d1cd093 /test_utils/managers | |
| parent | 4b705346968e38671ac9601cfa8444c944ecc8bd (diff) | |
| download | generalresearch-f8f1f07b193845d92c7f6ef8ae95b9696db6330f.tar.gz generalresearch-f8f1f07b193845d92c7f6ef8ae95b9696db6330f.zip | |
fix a lot of tests
Diffstat (limited to 'test_utils/managers')
| -rw-r--r-- | test_utils/managers/gr/conftest.py | 2 | ||||
| -rw-r--r-- | test_utils/managers/thl/conftest.py | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test_utils/managers/gr/conftest.py b/test_utils/managers/gr/conftest.py index cc1053c..09e08f5 100644 --- a/test_utils/managers/gr/conftest.py +++ b/test_utils/managers/gr/conftest.py @@ -29,6 +29,8 @@ if TYPE_CHECKING: @pytest.fixture(scope="session") def gr_redis_config_db() -> str: + # need to update 'databases' in /etc/redis/redis.conf + # or this won't work and you'll have no indication why ... return str(randint(99, 1_023)) diff --git a/test_utils/managers/thl/conftest.py b/test_utils/managers/thl/conftest.py index 8ca4383..98dd574 100644 --- a/test_utils/managers/thl/conftest.py +++ b/test_utils/managers/thl/conftest.py @@ -93,6 +93,11 @@ def thl_redis_config( @pytest.fixture(scope="session") +def thl_redis_client(thl_redis_config): + return thl_redis_config.create_redis_client() + + +@pytest.fixture(scope="session") def thl_web_rr(django_db_factory: Callable[..., PostgresDsn]) -> PostgresConfig: _dsn = django_db_factory("generalresearch.thl_django") |
