Skip to content
Snippets Groups Projects
Commit 877e231c authored by Braden MacDonald's avatar Braden MacDonald
Browse files

Fix two tests failing on January 1, 2015

parent 91a47962
No related merge requests found
......@@ -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/2015")
self.course_outline.q(css="#start_date").fill("01/01/2030")
self.course_outline.q(css=".action-save").first.click()
def _auto_auth(self, username, email, staff):
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment