Skip to content

Commit

Permalink
feat: add TestTaxonomyViewSetMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Jul 19, 2023
1 parent ed77ced commit 963841c
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():
def setUp(self):
super().setUp()

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

@ddt.ddt
class TestTaxonomyViewSet(TestTaxonomyViewSetMixin, APITestCase):

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

0 comments on commit 963841c

Please sign in to comment.