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
5dd172b3
Commit
5dd172b3
authored
Oct 19, 2017
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use consistent beginning_of_day function
parent
eff9c9c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
openedx/core/djangoapps/schedules/tasks.py
+1
-1
openedx/core/djangoapps/schedules/tests/test_tasks.py
+1
-1
No files found.
openedx/core/djangoapps/schedules/tasks.py
View file @
5dd172b3
...
...
@@ -65,7 +65,7 @@ class ScheduleMessageBaseTask(Task):
@classmethod
def
enqueue
(
cls
,
site
,
current_date
,
day_offset
,
override_recipient_email
=
None
):
current_date
=
current_date
.
replace
(
hour
=
0
,
minute
=
0
,
second
=
0
)
current_date
=
resolvers
.
_get_datetime_beginning_of_day
(
current_date
)
if
not
cls
.
is_enqueue_enabled
(
site
):
cls
.
log_debug
(
...
...
openedx/core/djangoapps/schedules/tests/test_tasks.py
View file @
5dd172b3
...
...
@@ -58,7 +58,7 @@ class TestScheduleMessageBaseTask(CacheIsolationTestCase):
current_date
=
current_date
,
day_offset
=
day_offset
)
target_date
=
current_date
.
replace
(
hour
=
0
,
minute
=
0
,
second
=
0
)
+
\
target_date
=
current_date
.
replace
(
hour
=
0
,
minute
=
0
,
second
=
0
,
microsecond
=
0
)
+
\
datetime
.
timedelta
(
day_offset
)
print
(
patches
[
'log_debug'
]
.
mock_calls
)
patches
[
'log_debug'
]
.
assert_any_call
(
...
...
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