File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,3 +20,4 @@ Nicolas Delaby <ticosax@free.fr>
20
20
Hasan Ramezani <hasan.r67@gmail.com>
21
21
Michael Howitz
22
22
Mark Gensler
23
+ Pavel Taufer
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ def assertion_func(*args, **kwargs):
54
54
55
55
56
56
if TYPE_CHECKING :
57
+ from django import forms
57
58
from django .http .response import HttpResponseBase
58
59
59
60
def assertRedirects (
@@ -93,17 +94,15 @@ def assertNotContains(
93
94
...
94
95
95
96
def assertFormError (
96
- response : HttpResponseBase ,
97
- form : str ,
97
+ form : forms .BaseForm ,
98
98
field : str | None ,
99
99
errors : str | Sequence [str ],
100
100
msg_prefix : str = ...,
101
101
) -> None :
102
102
...
103
103
104
- def assertFormsetError (
105
- response : HttpResponseBase ,
106
- formset : str ,
104
+ def assertFormSetError (
105
+ formset : forms .BaseFormSet ,
107
106
form_index : int | None ,
108
107
field : str | None ,
109
108
errors : str | Sequence [str ],
You can’t perform that action at this time.
0 commit comments