Skip to content

Commit

Permalink
temp: even more TTC
Browse files Browse the repository at this point in the history
  • Loading branch information
zawan-ila committed Dec 2, 2024
1 parent d0d5335 commit 2466cf0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,11 @@ def test_learner_pathway_course_restricted_runs(self, add_restriction_param, exp


@ddt.ddt
class TestLearnerPathwayProgramViewSet(TestCase):
class TestLearnerPathwayProgramViewSet(TransactionTestCase):
"""
Tests for LearnerPathwayProgramViewSet.
"""
serialized_rollback = True
def setUp(self):
super().setUp()
self.user = UserFactory.create(is_staff=True, is_active=True)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.test import TestCase
from django.test import TestCase, TransactionTestCase

from course_discovery.apps.api.tests.test_utils import make_request
from course_discovery.apps.course_metadata.tests.factories import CourseFactory, CourseRunFactory, ProgramFactory
Expand All @@ -8,7 +8,7 @@
)


class TestLearnerPathwaySerializer(TestCase):
class TestLearnerPathwaySerializer(TransactionTestCase):
serializer_class = LearnerPathwaySerializer
serialized_rollback = True
def create_pathway(self):
Expand Down
4 changes: 2 additions & 2 deletions course_discovery/apps/publisher/tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib.auth.models import Group
from django.test import TestCase
from django.test import TestCase, TransactionTestCase
from django.urls import reverse
from guardian.shortcuts import get_group_perms

Expand All @@ -13,7 +13,7 @@
USER_PASSWORD = 'password'


class OrganizationExtensionAdminTests(SiteMixin, TestCase):
class OrganizationExtensionAdminTests(SiteMixin, TransactionTestCase):
""" Tests for OrganizationExtensionAdmin."""
serialized_rollback = True
def setUp(self):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from unittest import TestCase
from unittest import TestCase, TransactionTestCase

import pytest

Expand All @@ -8,7 +8,7 @@


@pytest.mark.django_db
class TestsCourseRecommendationsSerializer(TestCase):
class TestsCourseRecommendationsSerializer(TransactionTestCase):
"""Test CourseRecommendationsSerializer"""
serializer_class = CourseRecommendationsSerializer
serialized_rollback = True
Expand Down

0 comments on commit 2466cf0

Please sign in to comment.