Skip to content

Commit

Permalink
Try to fix the session-based test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Oderbolz committed Jul 1, 2015
1 parent ae10c83 commit 4aa691a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ckan/tests/legacy/lib/test_helpers.py
Expand Up @@ -40,6 +40,7 @@ def test_render_datetime_blank(self):

def test_render_datetime_with_utc_offset_from_session(self):
session['utc_timezone_offset'] = 120
session.save()
res = h.render_datetime(datetime.datetime(2008, 4, 13, 20, 40, 20, 123456), with_hours=True)
assert_equal(res, 'April 13, 2008, 22:40 (UTC+2)')

Expand Down

0 comments on commit 4aa691a

Please sign in to comment.