diff options
| author | stuppie | 2026-09-07 10:32:10 -0600 |
|---|---|---|
| committer | stuppie | 2026-09-07 10:32:10 -0600 |
| commit | c25a7351eeb6be4a998348a8cfc96bc4f965b96c (patch) | |
| tree | 301ce11ccd62dec5ab8485ff4b6859b2bea119e6 /tests/managers/thl/test_session_manager.py | |
| parent | e1b1484c1b33708154a21dff095bd56c498115f4 (diff) | |
| download | generalresearch-c25a7351eeb6be4a998348a8cfc96bc4f965b96c.tar.gz generalresearch-c25a7351eeb6be4a998348a8cfc96bc4f965b96c.zip | |
Fix Leaderboard optional fields were made not-optional
Diffstat (limited to 'tests/managers/thl/test_session_manager.py')
| -rw-r--r-- | tests/managers/thl/test_session_manager.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/managers/thl/test_session_manager.py b/tests/managers/thl/test_session_manager.py index 67a802e..60edcb9 100644 --- a/tests/managers/thl/test_session_manager.py +++ b/tests/managers/thl/test_session_manager.py @@ -118,20 +118,20 @@ class TestSessionManagerFilter: self, product_factory: Callable[..., Product], user_factory: Callable[..., User], - team: Team, + gr_team: Team, session_manager: SessionManager, utc_hour_ago: datetime, thl_web_rr: PostgresConfig, ): - p1 = product_factory(team=team) + p1 = product_factory(team=gr_team) for _ in range(5): u = user_factory(product=p1) session_manager.create(started=utc_hour_ago, user=u, uuid_id=uuid4().hex) - team.prefetch_products(thl_pg_config=thl_web_rr) - assert len(team.product_uuids) == 1 - res = session_manager.filter(product_uuids=team.product_uuids) + gr_team.prefetch_products(thl_pg_config=thl_web_rr) + assert len(gr_team.product_uuids) == 1 + res = session_manager.filter(product_uuids=gr_team.product_uuids) assert len(res) == 5 def test_business( |
