@@ -677,7 +677,7 @@ def test_lazy_tbody_on_fail():
677677 class ArtistForm (Form ):
678678 class Meta :
679679 auto__instance = dark_funeral
680- auto__include = ['id' , ' name' ]
680+ auto__include = ['name' ]
681681 fields__name__required = True
682682
683683 class AlbumsEditTable (EditTable ):
@@ -693,10 +693,11 @@ class Meta:
693693 class ParentForm (Form ):
694694 artist = ArtistForm .edit ()
695695 albums = AlbumsEditTable ()
696+
696697 class Meta :
697698 actions__submit__post_handler = save_nested_forms
698699
699- def test_parent_form_save (abort_on_fail ):
700+ def parent_form_save_test (abort_on_fail ):
700701 parent_form = ParentForm (extra_evaluated__nested_forms_abort_save_on_fail = abort_on_fail ).refine_done ()
701702 parent_form = parent_form .bind (
702703 request = req (
@@ -726,15 +727,14 @@ def test_parent_form_save(abort_on_fail):
726727
727728 return parent_form
728729
729- _form = test_parent_form_save (abort_on_fail = True )
730+ _form = parent_form_save_test (abort_on_fail = True )
730731 verify_part_html (
731732 part = _form ,
732733 # language=HTML
733734 expected_html = f"""
734735 <form action="" enctype="multipart/form-data" method="post">
735736 <div action="" enctype="multipart/form-data" method="post">
736737 <h1>Edit artist</h1>
737- <div><label for="id_id">ID</label><input id="id_id" name="id" type="text" value=""></div>
738738 <div><label for="id_name">Name</label><input id="id_name" name="name" type="text" value=""><ul><li>This field is required</li></ul></div>
739739 </div>
740740
@@ -777,15 +777,14 @@ def test_parent_form_save(abort_on_fail):
777777 """ ,
778778 )
779779
780- _form = test_parent_form_save (abort_on_fail = False )
780+ _form = parent_form_save_test (abort_on_fail = False )
781781 verify_part_html (
782782 part = _form ,
783783 # language=HTML
784784 expected_html = f"""
785785 <form action="" enctype="multipart/form-data" method="post">
786786 <div action="" enctype="multipart/form-data" method="post">
787787 <h1>Edit artist</h1>
788- <div><label for="id_id">ID</label><input id="id_id" name="id" type="text" value=""/></div>
789788 <div><label for="id_name">Name</label><input id="id_name" name="name" type="text" value="Dark Funeral"/></div>
790789 </div>
791790 <h1>Albums</h1>
0 commit comments