Skip to content

Commit 9dd5fb3

Browse files
committed
add defaults to main for ease of testing
1 parent 2325033 commit 9dd5fb3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ def form_generator(state: State):
118118
class TestForm(FormPage):
119119
model_config = ConfigDict(title="Form Title")
120120

121-
number: NumberExample
121+
number: NumberExample = 1
122122
text: Annotated[str, Field(min_length=3, max_length=12)] = "Default text"
123-
textArea: LongText
123+
textArea: LongText = "Default text area"
124124
divider: Divider
125125
label: Label = "Label"
126126
hidden: Hidden = "Hidden"
@@ -129,8 +129,8 @@ class TestForm(FormPage):
129129
# When there are <= 3 choices a radio group will be rendered
130130
radio: RadioChoices = "3"
131131
checkbox: bool = True
132-
multicheckbox: choice_list(MultiCheckBoxChoices)
133-
list: choice_list(ListChoices) = "0"
132+
multicheckbox: choice_list(MultiCheckBoxChoices) = "1"
133+
list: choice_list(ListChoices) = [0, 1]
134134

135135
form_data_1 = yield TestForm
136136

0 commit comments

Comments
 (0)