Skip to content

Commit

Permalink
Update test_forms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored May 6, 2024
1 parent fb2264e commit 7c7cf05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_forms/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ async def test_model_form_exclude() -> None:


async def test_model_form_form_args() -> None:
form_args = {"name": {"label": "User Name"}}
form_args = {"name": {"label": "User Name"}, "number": {"default": 100}}
Form = await get_model_form(
model=User, session_maker=session_maker, form_args=form_args
)
assert Form()._fields["name"].label.text == "User Name"
assert Form()._fields["number"].default == 100


async def test_model_form_column_label() -> None:
Expand Down

0 comments on commit 7c7cf05

Please sign in to comment.