Clarification in comments for Unit Test bandaid

This commit is contained in:
CocoByte 2023-12-29 11:41:36 -07:00
parent ea043bf504
commit 0ac1989a04
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -591,7 +591,9 @@ class OtherContactsForm(RegistrarForm):
cleaned = super().clean()
form_is_empty = all(v is None or v == "" for v in cleaned.values())
# NOTE: Phone number and email do NOT show up in cleaned values.
# ==== UNIT TEST BANDAID ====
# NOTE: Phone number and email do NOT show up in cleaned values
# This is for UNIT TESTS only. The page itself loads cleaned data just fine.
# I have spent hours tyring to figure out why, but have no idea...
# so for now we will grab their values from the raw data...
for i in self.data: