aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/test_events.py
diff options
context:
space:
mode:
authorMax Nanis2026-08-25 11:09:52 -0700
committerMax Nanis2026-08-25 11:09:52 -0700
commit3b4059135be47f7752a08e4277a85f9e57ceaa9d (patch)
tree122561f7cc99aeb2933a4fc37d07b3eecd514701 /tests/managers/test_events.py
parent5682f48a96b0713929a4bb52e72eec5907d5dd32 (diff)
downloadgeneralresearch-3b4059135be47f7752a08e4277a85f9e57ceaa9d.tar.gz
generalresearch-3b4059135be47f7752a08e4277a85f9e57ceaa9d.zip
Ruff typing from this morning. WIP
Diffstat (limited to 'tests/managers/test_events.py')
-rw-r--r--tests/managers/test_events.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/managers/test_events.py b/tests/managers/test_events.py
index cc9a1bf..a6d3a6b 100644
--- a/tests/managers/test_events.py
+++ b/tests/managers/test_events.py
@@ -35,8 +35,8 @@ def user_factory(product_id):
@pytest.fixture(scope="function")
-def event_subscriber(thl_redis_config, product_id):
- return EventSubscriber(redis_config=thl_redis_config, product_id=product_id)
+def event_subscriber(thl_redis_config: RedisConfig, product_id):
+ return EventSubscriber(redis_config=thl_redis_config: RedisConfig, product_id=product_id)
def create_dummy(
@@ -185,7 +185,7 @@ class TestSessionStats:
"session_fail_avg_loi_last_24h": None,
}
- def test_run(self, event_manager, product_id, user_factory, utc_now, utc_hour_ago):
+ def test_run(self, event_manager, product_id, user_factory: Callable[..., User], utc_now, utc_hour_ago):
event_manager.clear_global_session_stats()
user: User = user_factory()
@@ -448,7 +448,7 @@ class TestChannelsSubscriptions:
event_manager,
event_subscriber,
product_id,
- user_factory,
+ user_factory: Callable[..., User],
utc_hour_ago,
utc_now,
):