aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/thl/test_user_streak.py
diff options
context:
space:
mode:
authorMax Nanis2026-08-24 17:12:54 -0700
committerMax Nanis2026-08-24 17:12:54 -0700
commit5682f48a96b0713929a4bb52e72eec5907d5dd32 (patch)
tree3e5ba728145cf69f4ea0fde48e630b341c164cd0 /tests/managers/thl/test_user_streak.py
parent979efd01b0c61d493d1fef3dff9885f5d38a8975 (diff)
downloadgeneralresearch-5682f48a96b0713929a4bb52e72eec5907d5dd32.tar.gz
generalresearch-5682f48a96b0713929a4bb52e72eec5907d5dd32.zip
pytest fixture annotations, ruf manual edits
Diffstat (limited to 'tests/managers/thl/test_user_streak.py')
-rw-r--r--tests/managers/thl/test_user_streak.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/managers/thl/test_user_streak.py b/tests/managers/thl/test_user_streak.py
index be0729c..e87869f 100644
--- a/tests/managers/thl/test_user_streak.py
+++ b/tests/managers/thl/test_user_streak.py
@@ -192,11 +192,11 @@ def test_user_streak_complete_active(user_streak_manager, user, session_manager)
streaks = user_streak_manager.get_user_streaks(
user_id=user.user_id, country_iso="us"
)
- streak = [
+ streak = next(
s
for s in streaks
if s.fulfillment == StreakFulfillment.COMPLETE and s.period == StreakPeriod.DAY
- ][0]
+ )
assert streak == expected_streak
# And now they complete today