diff options
| author | Max Nanis | 2026-08-24 17:12:54 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-08-24 17:12:54 -0700 |
| commit | 5682f48a96b0713929a4bb52e72eec5907d5dd32 (patch) | |
| tree | 3e5ba728145cf69f4ea0fde48e630b341c164cd0 /tests/managers/thl/test_user_streak.py | |
| parent | 979efd01b0c61d493d1fef3dff9885f5d38a8975 (diff) | |
| download | generalresearch-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.py | 4 |
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 |
