Skip to content

Commit 352054b

Browse files
committed
Allow bad arg types for tests checking that
1 parent 3d38989 commit 352054b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testapp/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def test_force_index_at_least_one(self):
330330

331331
def test_force_index_invalid_for(self):
332332
with pytest.raises(ValueError) as excinfo:
333-
Author.objects.force_index("a", for_="INVALID")
333+
Author.objects.force_index("a", for_="INVALID") # type: ignore [arg-type]
334334
assert "for_ must be one of" in str(excinfo.value)
335335

336336
def test_index_hint_force_order_by(self):
@@ -527,7 +527,7 @@ def test_objects_pk_range_reversed(self):
527527

528528
def test_objects_pk_range_bad(self):
529529
with pytest.raises(ValueError) as excinfo:
530-
list(Author.objects.iter_smart(pk_range="My Bad Value"))
530+
list(Author.objects.iter_smart(pk_range="My Bad Value")) # type: ignore [arg-type]
531531
assert "Unrecognized value for pk_range" in str(excinfo.value)
532532

533533
def test_pk_range_race_condition(self):

0 commit comments

Comments
 (0)