-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
asadiqbal08-xblock translations initial tests #11628
Conversation
e23aa0f
to
493599b
Compare
jenkins run python |
@mattdrayer there is a test that is failing locally as well, I will look into that. |
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. |
fa3ca94
to
8d5f86e
Compare
493599b
to
92ae8e9
Compare
d75413f
to
d092430
Compare
@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") |
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.
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.
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.
added
5bb0b25
to
e2543c7
Compare
Jenkins is happy -- I'm going to merge this child branch into the main feature branch now. |
asadiqbal08-xblock translations initial tests
@mattdrayer fyi.