@@ -34,21 +34,21 @@ class TestRenderFormResponse:
3434 class MyForm (forms .Form ):
3535 comment = forms .CharField ()
3636
37- def test_render_partial_no_errors (self , rf ):
37+ def test_render_turbo_stream_no_errors (self , rf ):
3838 req = rf .get ("/" )
3939 form = self .MyForm ()
4040 resp = render_form_response (
4141 req ,
4242 form ,
4343 "my_form.html" ,
4444 turbo_stream_target = "my-form" ,
45- partial_template = "_my_form.html" ,
45+ turbo_stream_template = "_my_form.html" ,
4646 )
4747 assert resp .status_code == http .HTTPStatus .OK
4848 assert resp .context_data ["form" ] == form
4949 assert resp .context_data ["turbo_stream_target" ] == "my-form"
5050
51- def test_render_partial_errors (self , rf ):
51+ def test_render_turbo_stream_errors (self , rf ):
5252 req = rf .get ("/" )
5353 form = self .MyForm ({})
5454 # missing comment, should be error
@@ -59,7 +59,7 @@ def test_render_partial_errors(self, rf):
5959 form ,
6060 "my_form.html" ,
6161 turbo_stream_target = "my-form" ,
62- partial_template = "_my_form.html" ,
62+ turbo_stream_template = "_my_form.html" ,
6363 )
6464 assert resp .status_code == http .HTTPStatus .OK
6565 assert resp .context_data ["form" ] == form
0 commit comments