Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
1f3085b2
Unverified
Commit
1f3085b2
authored
Nov 17, 2017
by
Gabe Mulley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename test methods
parent
a6387c0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openedx/core/djangoapps/schedules/tests/test_signals.py
+3
-3
No files found.
openedx/core/djangoapps/schedules/tests/test_signals.py
View file @
1f3085b2
...
...
@@ -143,7 +143,7 @@ class UpdateScheduleTests(SharedModuleStoreTestCase):
_strip_secs
(
expected_start
)
+
datetime
.
timedelta
(
days
=
self
.
VERIFICATION_DEADLINE_DAYS
),
)
def
test_updated_
since
_course_not_started
(
self
,
mock_get_current_site
):
def
test_updated_
when
_course_not_started
(
self
,
mock_get_current_site
):
mock_get_current_site
.
return_value
=
self
.
site
course
=
_create_course_run
(
self_paced
=
True
,
start_day_offset
=
5
)
# course starts in future
...
...
@@ -155,7 +155,7 @@ class UpdateScheduleTests(SharedModuleStoreTestCase):
enrollment
=
CourseEnrollment
.
objects
.
get
(
id
=
enrollment
.
id
)
self
.
assert_schedule_dates
(
enrollment
.
schedule
,
course
.
start
)
# start set to new course start
def
test_
not_updated_since
_course_already_started
(
self
,
mock_get_current_site
):
def
test_
updated_when
_course_already_started
(
self
,
mock_get_current_site
):
mock_get_current_site
.
return_value
=
self
.
site
course
=
_create_course_run
(
self_paced
=
True
,
start_day_offset
=-
5
)
# course starts in past
...
...
@@ -167,7 +167,7 @@ class UpdateScheduleTests(SharedModuleStoreTestCase):
enrollment
=
CourseEnrollment
.
objects
.
get
(
id
=
enrollment
.
id
)
self
.
assert_schedule_dates
(
enrollment
.
schedule
,
course
.
start
)
# start set to new course start
def
test_
not_updated_since
_new_start_in_past
(
self
,
mock_get_current_site
):
def
test_
updated_when
_new_start_in_past
(
self
,
mock_get_current_site
):
mock_get_current_site
.
return_value
=
self
.
site
course
=
_create_course_run
(
self_paced
=
True
,
start_day_offset
=
5
)
# course starts in future
...
...
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