Skip to content

Commit

Permalink
feat: create TestTaxonomyViewSetMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Jul 19, 2023
1 parent ed77ced commit 8e420c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/openedx_tagging/core/tagging/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@

User = get_user_model()


@ddt.ddt
class TestTaxonomyViewSet(APITestCase):
class TestTaxonomyViewSetMixin(APITestCase):
def setUp(self):
super().setUp()

Expand All @@ -29,6 +27,9 @@ def setUp(self):
is_staff=True,
)

@ddt.ddt
class TestTaxonomyViewSet(TestTaxonomyViewSetMixin):

@ddt.data(
(None, status.HTTP_200_OK, 3),
(1, status.HTTP_200_OK, 2),
Expand Down

0 comments on commit 8e420c3

Please sign in to comment.