mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-20 17:41:55 +02:00
Create tests for the WEI app
This commit is contained in:
@ -37,7 +37,7 @@ class WEISurveyForm2020(forms.Form):
|
||||
words = [choice(WORDS) for _ in range(10)]
|
||||
words = [(w, w) for w in words]
|
||||
if self.data:
|
||||
self.fields["word"].choices = WORDS
|
||||
self.fields["word"].choices = [(w, w) for w in WORDS]
|
||||
if self.is_valid():
|
||||
return
|
||||
self.fields["word"].choices = words
|
||||
|
Reference in New Issue
Block a user