Skip to content

Commit 0494481

Browse files
authored
Add type definition for assertNotInHTML (#1200)
1 parent 292088c commit 0494481

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytest_django/asserts.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ def assertInHTML(
160160
msg_prefix: str = ...,
161161
) -> None: ...
162162

163+
# Added in Django 5.1.
164+
def assertNotInHTML(
165+
needle: str,
166+
haystack: str,
167+
msg_prefix: str = ...,
168+
) -> None: ...
169+
163170
def assertJSONEqual(
164171
raw: str,
165172
expected_data: Any,

0 commit comments

Comments
 (0)