Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
bccae595
Commit
bccae595
authored
Jun 29, 2018
by
Farhanah Sheets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start removing MockedStartEndDateTestCase
parent
4ef6ee98
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
+3
-6
course_discovery/apps/publisher/api/tests/test_serializers.py
+1
-2
course_discovery/apps/publisher/api/tests/test_views.py
+1
-2
course_discovery/apps/publisher/tests/test_models.py
+1
-2
No files found.
course_discovery/apps/publisher/api/tests/test_serializers.py
View file @
bccae595
...
...
@@ -21,7 +21,6 @@ from course_discovery.apps.publisher.tests.factories import (
CourseFactory
,
CourseRunFactory
,
CourseRunStateFactory
,
CourseStateFactory
,
CourseUserRoleFactory
,
OrganizationExtensionFactory
,
SeatFactory
)
from
course_discovery.apps.publisher.tests.utils
import
MockedStartEndDateTestCase
class
CourseUserRoleSerializerTests
(
SiteMixin
,
TestCase
):
...
...
@@ -293,7 +292,7 @@ class CourseStateSerializerTests(SiteMixin, TestCase):
serializer
.
update
(
self
.
course_state
,
data
)
class
CourseRunStateSerializerTests
(
SiteMixin
,
MockedStartEndDateTestCase
):
class
CourseRunStateSerializerTests
(
SiteMixin
):
serializer_class
=
CourseRunStateSerializer
def
setUp
(
self
):
...
...
course_discovery/apps/publisher/api/tests/test_views.py
View file @
bccae595
...
...
@@ -26,7 +26,6 @@ from course_discovery.apps.publisher.models import (
Course
,
CourseRun
,
CourseRunState
,
CourseState
,
OrganizationExtension
,
Seat
)
from
course_discovery.apps.publisher.tests
import
JSON_CONTENT_TYPE
,
factories
from
course_discovery.apps.publisher.tests.utils
import
MockedStartEndDateTestCase
@ddt.ddt
...
...
@@ -589,7 +588,7 @@ class ChangeCourseStateViewTests(SiteMixin, TestCase):
self
.
_assert_email_sent
(
course_team_user
,
subject
)
class
ChangeCourseRunStateViewTests
(
SiteMixin
,
MockedStartEndDateTestCase
):
class
ChangeCourseRunStateViewTests
(
SiteMixin
):
def
setUp
(
self
):
super
(
ChangeCourseRunStateViewTests
,
self
)
.
setUp
()
...
...
course_discovery/apps/publisher/tests/test_models.py
View file @
bccae595
...
...
@@ -20,11 +20,10 @@ from course_discovery.apps.publisher.models import (
Course
,
CourseUserRole
,
OrganizationExtension
,
OrganizationUserRole
,
Seat
)
from
course_discovery.apps.publisher.tests
import
factories
from
course_discovery.apps.publisher.tests.utils
import
MockedStartEndDateTestCase
@ddt.ddt
class
CourseRunTests
(
MockedStartEndDateTestCase
):
class
CourseRunTests
():
@classmethod
def
setUpClass
(
cls
):
super
(
CourseRunTests
,
cls
)
.
setUpClass
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment