Merge lp:~cjohnston/ubuntu-ci-services-itself/fix-ts-date into lp:ubuntu-ci-services-itself

Proposed by Chris Johnston
Status: Merged
Approved by: Chris Johnston
Approved revision: 298
Merged at revision: 298
Proposed branch: lp:~cjohnston/ubuntu-ci-services-itself/fix-ts-date
Merge into: lp:ubuntu-ci-services-itself
Diff against target: 12 lines (+1/-1)
1 file modified
ticket_system/ticket_system/settings.py (+1/-1)
To merge this branch: bzr merge lp:~cjohnston/ubuntu-ci-services-itself/fix-ts-date
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+209111@code.launchpad.net

Commit message

Fix TS tests failing due to date

Description of the change

The TS API test started failing when we rolled over to March due to "1" != "01" with the dates. This MP will strip the padded 0 and cause our tests to pass again.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:298
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/269/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/269/rebuild

review: Approve (continuous-integration)
Revision history for this message
Andy Doan (doanac) wrote :

i'd just add to the comment message *why* this failed (ie the 0-padding issues we were having)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ticket_system/ticket_system/settings.py'
2--- ticket_system/ticket_system/settings.py 2014-02-22 16:30:18 +0000
3+++ ticket_system/ticket_system/settings.py 2014-03-03 18:04:18 +0000
4@@ -69,7 +69,7 @@
5 # In a Windows environment this must be set to your system time zone.
6 TIME_ZONE = 'GMT'
7 TASTYPIE_DATETIME_FORMATTING = 'rfc-2822'
8-TEST_DATETIME_FORMAT = "%a, %d %b %Y %H:%M:%S %z"
9+TEST_DATETIME_FORMAT = "%a, %-d %b %Y %H:%M:%S %z"
10
11 # Language code for this installation. All choices can be found here:
12 # http://www.i18nguy.com/unicode/language-identifiers.html

Subscribers

People subscribed via source and target branches