Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
1f3085b2
Unverified
Commit
1f3085b2
authored
7 years ago
by
Gabe Mulley
Browse files
Options
Downloads
Patches
Plain Diff
rename test methods
parent
a6387c0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/schedules/tests/test_signals.py
+3
-3
3 additions, 3 deletions
openedx/core/djangoapps/schedules/tests/test_signals.py
with
3 additions
and
3 deletions
openedx/core/djangoapps/schedules/tests/test_signals.py
+
3
−
3
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment