-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes some failing tests on jenkins #29
Conversation
magopian
commented
Apr 2, 2014
- apps.users.tests.test_views.TestReset.test_reset_fails, apps.users.tests.test_views.TestReset.test_reset_msg: introduced in d1e14c4
- apps.devhub.tests.test_views.TestDashboard.test_sort_created_filter: introduced in ad4ecea
- apps.api.tests.test_urls:TestDRFSwitch.test_responses: introduced in 5ab4b4a
- tests failing because of calls to persona
@@ -232,7 +232,7 @@ def test_sort_created_filter(self): | |||
d = doc('.item-details .date-created') | |||
eq_(d.length, 1) | |||
eq_(d.remove('strong').text(), | |||
strip_whitespace(datetime_filter(addon.created, '%b %e, %Y'))) | |||
datetime_filter(addon.created, '%b %e, %Y')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmm why ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are now using %e
which replaces the 0
in the day number (eg 02
) by a space. We can't use %b%e
because when there's no 0
, there's no space at all. So we need to keep this extraneous space (which isn't visible when the html is rendered), and thus can't match if we use strip_whitespace
in the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
r+wc |
Fixes some failing tests on jenkins