Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
93704920
Unverified
Commit
93704920
authored
5 years ago
by
Aarif
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #21652 from edx/BOM-474
BOM-474
parents
c4796b12
76706553
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
common/djangoapps/util/tests/test_date_utils.py
+3
-1
3 additions, 1 deletion
common/djangoapps/util/tests/test_date_utils.py
with
3 additions
and
1 deletion
common/djangoapps/util/tests/test_date_utils.py
+
3
−
1
View file @
93704920
...
...
@@ -9,6 +9,7 @@ import unittest
from
datetime
import
datetime
,
timedelta
,
tzinfo
import
ddt
import
six
from
mock
import
patch
from
pytz
import
utc
...
...
@@ -135,7 +136,8 @@ class StrftimeLocalizedTest(unittest.TestCase):
dtime
=
datetime
(
2013
,
2
,
14
,
16
,
41
,
17
)
self
.
assertEqual
(
expected
,
strftime_localized
(
dtime
,
fmt
))
# strftime doesn't like Unicode, so do the work in UTF8.
self
.
assertEqual
(
expected
,
dtime
.
strftime
(
fmt
.
encode
(
'
utf8
'
)).
decode
(
'
utf8
'
))
self
.
assertEqual
(
expected
.
encode
(
'
utf-8
'
)
if
six
.
PY2
else
expected
,
dtime
.
strftime
(
fmt
.
encode
(
'
utf-8
'
)
if
six
.
PY2
else
fmt
))
@ddt.data
(
(
"
SHORT_DATE
"
,
"
Feb 14, 2013
"
),
...
...
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