diff options
| author | Max Nanis | 2026-08-24 16:04:11 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-08-24 16:04:11 -0700 |
| commit | 979efd01b0c61d493d1fef3dff9885f5d38a8975 (patch) | |
| tree | 1f56c05b4736636f0f5f82678bc06994bd0a4403 /tests/managers/thl/test_survey_penalty.py | |
| parent | e2c5de703be45746bacaea4136f24440ff5a291c (diff) | |
| download | generalresearch-979efd01b0c61d493d1fef3dff9885f5d38a8975.tar.gz generalresearch-979efd01b0c61d493d1fef3dff9885f5d38a8975.zip | |
ruff + fix filepath_adapter
Diffstat (limited to 'tests/managers/thl/test_survey_penalty.py')
| -rw-r--r-- | tests/managers/thl/test_survey_penalty.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/managers/thl/test_survey_penalty.py b/tests/managers/thl/test_survey_penalty.py index 2a3cdc2..c7862bb 100644 --- a/tests/managers/thl/test_survey_penalty.py +++ b/tests/managers/thl/test_survey_penalty.py @@ -88,10 +88,8 @@ class TestSurveyPenalty: ) assert res == {"t:a": 0.1, "t:b": 0.2, "u:b": 0.1} assert surveypenalty_manager.cache.currsize == 1 - cached_key = tuple(list(list(surveypenalty_manager.cache.keys())[0])[1:]) - assert cached_key == tuple( - ["product_id", product_uuid, "team_id", team_id_random] - ) + cached_key = tuple(list(next(iter(surveypenalty_manager.cache.keys())))[1:]) + assert cached_key == ("product_id", product_uuid, "team_id", team_id_random) # Both don't exist, return nothing res = surveypenalty_manager.get_penalties_for( |
