From 7c7cf057827bee3d09c6c8713a463146b1acd921 Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Mon, 6 May 2024 14:59:03 +0200 Subject: [PATCH] Update test_forms.py --- tests/test_forms/test_forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_forms/test_forms.py b/tests/test_forms/test_forms.py index 6c0795ec..a3faf48e 100644 --- a/tests/test_forms/test_forms.py +++ b/tests/test_forms/test_forms.py @@ -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: