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

Do a proper _pre_setup and _post_teardown for all the tests (bug 1056870) #690

Conversation

magopian
Copy link
Contributor

Fixes bug 1056870

@magopian magopian force-pushed the 1056870-pre_setup-post_teardown-all-the-things branch 2 times, most recently from be24c06 to 787c399 Compare August 26, 2015 17:53
locale=locale).localized_string,
localized_string)
translation = Translation.objects.get(id=trans.id, locale=locale)
assert translation.localized_string == localized_string
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@kmaglione
Copy link
Contributor

Oh, that's much nicer. Looks like there are a few tests that rely on importing the functions you moved, though. And a few ES tests that break nice Pytest reporting by doing assert foo in bar, bar :(

Looks like apps/translations/tests/test_helpers.py::test_l10n_menu is legitimately broken, though. But it looks more like it's broken because it never would have worked with an active prefixer, and now it has one. So it's something that should have been failing all along.

r+wc

@kmaglione
Copy link
Contributor

(Maybe just split the failing test in two, mark the last part xfail for now, and fix it in a follow-up.)

@magopian magopian force-pushed the 1056870-pre_setup-post_teardown-all-the-things branch from 787c399 to 98602f6 Compare August 27, 2015 12:55
@magopian
Copy link
Contributor Author

All fixed ;)

magopian added a commit that referenced this pull request Aug 27, 2015
…-all-the-things

Do a proper _pre_setup and _post_teardown for all the tests (bug 1056870)
@magopian magopian merged commit ac80230 into mozilla:master Aug 27, 2015
@magopian magopian deleted the 1056870-pre_setup-post_teardown-all-the-things branch August 27, 2015 14:13
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