aboutsummaryrefslogtreecommitdiff
path: root/tests/managers/thl/test_survey.py
diff options
context:
space:
mode:
authorMax Nanis2026-08-27 17:46:11 -0700
committerMax Nanis2026-08-27 17:46:11 -0700
commitaeeb7fef2594ccd34fbe96a77f6c5b392299fed7 (patch)
treede0896615df0c9747208fc26eb1ddde60f248286 /tests/managers/thl/test_survey.py
parentfdc170938ac4ac8fa5d9d4df1936e6dc0777f291 (diff)
downloadgeneralresearch-aeeb7fef2594ccd34fbe96a77f6c5b392299fed7.tar.gz
generalresearch-aeeb7fef2594ccd34fbe96a77f6c5b392299fed7.zip
Ruff afternoon
Diffstat (limited to 'tests/managers/thl/test_survey.py')
-rw-r--r--tests/managers/thl/test_survey.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/managers/thl/test_survey.py b/tests/managers/thl/test_survey.py
index 2c2bf9d..c3ab162 100644
--- a/tests/managers/thl/test_survey.py
+++ b/tests/managers/thl/test_survey.py
@@ -11,9 +11,6 @@ from generalresearch.managers.thl.buyer import BuyerManager
from generalresearch.managers.thl.profiling.question import (
QuestionManager,
)
-from generalresearch.managers.thl.profiling.schema import (
- UpkSchemaManager,
-)
from generalresearch.managers.thl.profiling.uqa import UQAManager
from generalresearch.managers.thl.survey import SurveyManager, SurveyStatManager
from generalresearch.models import Source
@@ -183,7 +180,8 @@ class TestSurvey:
]
uqad = {}
for uqa in uqas:
- for k, _ in uqa.calc_answers.items():
+ assert uqa.calc_answers
+ for k in uqa.calc_answers:
if k in qualifying_questions:
uqad[k] = uqa
uqad[uqa.property_code] = uqa