Skip to content
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

Merged
merged 4 commits into from
Apr 3, 2014
Merged

Conversation

magopian
Copy link
Contributor

@magopian 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'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm why ?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@diox
Copy link
Member

diox commented Apr 2, 2014

r+wc

magopian added a commit that referenced this pull request Apr 3, 2014
Fixes some failing tests on jenkins
@magopian magopian merged commit 01055a0 into mozilla:master Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants