aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/test_events.py
diff options
context:
space:
mode:
authorMax Nanis2026-09-03 09:26:17 -0700
committerMax Nanis2026-09-03 09:26:17 -0700
commit1151b332279425e4e088bd3499c76e582f7f045d (patch)
treec4098976eaaed187cb7a2eca388c805b70986efc /tests/managers/test_events.py
parent17ff15c06655717627da820417337c6b0b97de42 (diff)
downloadgeneralresearch-1151b332279425e4e088bd3499c76e582f7f045d.tar.gz
generalresearch-1151b332279425e4e088bd3499c76e582f7f045d.zip
Test cleanup all morning. mangers/thl = 78fail, 417passed
Diffstat (limited to 'tests/managers/test_events.py')
-rw-r--r--tests/managers/test_events.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/managers/test_events.py b/tests/managers/test_events.py
index 8745126..e256876 100644
--- a/tests/managers/test_events.py
+++ b/tests/managers/test_events.py
@@ -1,13 +1,10 @@
from __future__ import annotations
import math
-import random
import time
from collections.abc import Callable
from datetime import UTC, datetime, timedelta
from decimal import Decimal
-from functools import partial
-from math import floor
from typing import TYPE_CHECKING
from uuid import uuid4
@@ -39,27 +36,10 @@ def product_id(product_manager: ProductManager) -> str:
@pytest.fixture(scope="function")
-def user_factory(product_id: str):
- return partial(create_dummy, product_id=product_id)
-
-
-@pytest.fixture(scope="function")
def event_subscriber(thl_redis_config: RedisConfig, product_id: str) -> EventSubscriber:
return EventSubscriber(redis_config=thl_redis_config, product_id=product_id)
-def create_dummy(
- product_id: str | None = None, product_user_id: str | None = None
-) -> User:
- return User(
- product_id=product_id,
- product_user_id=product_user_id or uuid4().hex,
- uuid=uuid4().hex,
- created=datetime.now(tz=UTC),
- user_id=random.randint(0, floor(2**32 / 2)),
- )
-
-
class TestActiveUsers:
def test_run_empty(self, event_manager: EventManager, product_id: str):