Skip to content

Commit

Permalink
fix: TestModelViewSetMeta error msg when not subclassing TestCase (
Browse files Browse the repository at this point in the history
  • Loading branch information
hbakri authored Sep 5, 2023
1 parent 1ada9b2 commit 494e3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja_crud/tests/test_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __new__(mcs, name, bases, dct):
return new_cls
elif not issubclass(new_cls, TestCase):
raise TypeError(
f"{new_cls.__name__} must inherit from both ModelViewSetTest and django.test.TestCase"
f"{new_cls.__name__} must inherit from both TestModelViewSet and django.test.TestCase"
) # pragma: no cover

mcs.validate_model_view_set_class(new_cls)
Expand Down

0 comments on commit 494e3c2

Please sign in to comment.