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

asadiqbal08-xblock translations initial tests #11628

Conversation

asadiqbal08
Copy link
Contributor

@asadiqbal08 asadiqbal08 force-pushed the asadiqbal08/xblock_translations_tests branch from e23aa0f to 493599b Compare February 23, 2016 15:12
@mattdrayer
Copy link
Contributor

jenkins run python

@asadiqbal08
Copy link
Contributor Author

@mattdrayer there is a test that is failing locally as well, I will look into that.

@mattdrayer
Copy link
Contributor

hah, I was just going to look into that -- you should be sleeping :) FYI, I am currently rebasing #11575 onto the latest master and squashing some of the older commits.

@mattdrayer mattdrayer force-pushed the mattdrayer/xblock-translations branch 2 times, most recently from fa3ca94 to 8d5f86e Compare February 24, 2016 19:25
@mattdrayer mattdrayer force-pushed the asadiqbal08/xblock_translations_tests branch from 493599b to 92ae8e9 Compare February 24, 2016 19:55
@asadiqbal08 asadiqbal08 force-pushed the asadiqbal08/xblock_translations_tests branch 5 times, most recently from d75413f to d092430 Compare February 25, 2016 12:55
@asadiqbal08
Copy link
Contributor Author

@mattdrayer I updated this PR, Kindly look into that tests and I hope Jenkins will pass all the tests and then we will merge into parent but We got an email from @benpatterson about jenkins failure behavior.

Thanks

old_lang = translation.get_language()

# Activate french, so that if the fr files haven't been loaded, they will be loaded now.
translation.activate("fr")
Copy link
Contributor

Choose a reason for hiding this comment

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

If the test is going to change global state like the current language, then you need an addCleanup in setUp that will restore it. Setting it back inside the test isn't enough because the test won't complete if it fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@asadiqbal08 asadiqbal08 force-pushed the asadiqbal08/xblock_translations_tests branch from 5bb0b25 to e2543c7 Compare February 25, 2016 13:41
@mattdrayer
Copy link
Contributor

Jenkins is happy -- I'm going to merge this child branch into the main feature branch now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants