aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/thl/test_session_manager.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/thl/test_session_manager.py
parent5682f48a96b0713929a4bb52e72eec5907d5dd32 (diff)
downloadgeneralresearch-3b4059135be47f7752a08e4277a85f9e57ceaa9d.tar.gz
generalresearch-3b4059135be47f7752a08e4277a85f9e57ceaa9d.zip
Ruff typing from this morning. WIP
Diffstat (limited to 'tests/managers/thl/test_session_manager.py')
-rw-r--r--tests/managers/thl/test_session_manager.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/tests/managers/thl/test_session_manager.py b/tests/managers/thl/test_session_manager.py
index adcbe25..6c5f820 100644
--- a/tests/managers/thl/test_session_manager.py
+++ b/tests/managers/thl/test_session_manager.py
@@ -75,7 +75,12 @@ class TestSessionManagerFilter:
assert len(res) == 2
def test_product(
- self, product_factory, user_factory, session_manager, user, utc_hour_ago
+ self,
+ product_factory: Callable[..., Product],
+ user_factory: Callable[..., User],
+ session_manager,
+ user,
+ utc_hour_ago,
):
from generalresearch.models.thl.session import Session
from generalresearch.models.thl.user import User
@@ -95,13 +100,13 @@ class TestSessionManagerFilter:
def test_team(
self,
- product_factory,
- user_factory,
+ product_factory: Callable[..., Product],
+ user_factory: Callable[..., User],
team,
session_manager,
user,
utc_hour_ago,
- thl_web_rr,
+ thl_web_rr: PostgresConfig,
):
p1 = product_factory(team=team)
@@ -116,13 +121,13 @@ class TestSessionManagerFilter:
def test_business(
self,
- product_factory,
- business,
- user_factory,
+ product_factory: Callable[..., Product],
+ business: Business,
+ user_factory: Callable[..., User],
session_manager,
user,
utc_hour_ago,
- thl_web_rr,
+ thl_web_rr: PostgresConfig,
):
p1 = product_factory(business=business)