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
279e2e82
Commit
279e2e82
authored
Jan 02, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6432 from open-craft/annual-test-failures
Fix two tests failing on January 1, 2015
parents
91a47962
877e231c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
common/test/acceptance/tests/lms/test_lms_courseware.py
+1
-1
openedx/core/djangoapps/user_api/tests/test_profile_api.py
+2
-1
No files found.
common/test/acceptance/tests/lms/test_lms_courseware.py
View file @
279e2e82
...
...
@@ -67,7 +67,7 @@ class CoursewareTest(UniqueCourseTest):
"""
self
.
course_outline
.
q
(
css
=
".subsection-header-actions .configure-button"
)
.
first
.
click
()
self
.
course_outline
.
q
(
css
=
"#start_date"
)
.
fill
(
"01/01/20
15
"
)
self
.
course_outline
.
q
(
css
=
"#start_date"
)
.
fill
(
"01/01/20
30
"
)
self
.
course_outline
.
q
(
css
=
".action-save"
)
.
first
.
click
()
def
_auto_auth
(
self
,
username
,
email
,
staff
):
...
...
openedx/core/djangoapps/user_api/tests/test_profile_api.py
View file @
279e2e82
...
...
@@ -7,6 +7,7 @@ import ddt
from
django.test.utils
import
override_settings
from
nose.tools
import
raises
from
dateutil.parser
import
parse
as
parse_datetime
from
pytz
import
UTC
from
xmodule.modulestore.tests.factories
import
CourseFactory
import
datetime
...
...
@@ -167,7 +168,7 @@ class ProfileApiTest(TestCase):
# Set year of birth
user
=
User
.
objects
.
get
(
username
=
self
.
USERNAME
)
profile
=
UserProfile
.
objects
.
get
(
user
=
user
)
year_of_birth
=
datetime
.
datetime
.
now
()
.
year
-
age
# pylint: disable=maybe-no-member
year_of_birth
=
datetime
.
datetime
.
now
(
UTC
)
.
year
-
age
# pylint: disable=maybe-no-member
profile
.
year_of_birth
=
year_of_birth
profile
.
save
()
...
...
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