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

Ensure throttle level is always set fixes bug 731325 #459

Merged
merged 1 commit into from Mar 27, 2012
Merged

Ensure throttle level is always set fixes bug 731325 #459

merged 1 commit into from Mar 27, 2012

Conversation

ghost
Copy link

@ghost ghost commented Mar 25, 2012

This pull request also includes some documentation on writing and running unit tests.

@adngdb
Copy link
Contributor

adngdb commented Mar 26, 2012

Please run check.py on all your Python files: there are a bunch of styling problems that it will raise.

@@ -84,3 +84,133 @@ How to configure your test environment
soccoro. E.g if you have installed socorro at
``/home/tester/Mozilla/socorro`` then your PYTHONPATH should look like
``...:/home/tester/Mozilla:/home/tester/Mozilla/thirdparty:...``

Writing a PostgreSQL middleware unit test
Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome!!!

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I think the "Writing a test" part should go into addaservice instead. Or at least there should be a link there to here, as it is really middleware-related.

@ghost
Copy link
Author

ghost commented Mar 26, 2012

@AdrianGaudebert changes made, please let me know if there is more or, if I missed something

from socorro.lib import datetimeutil
import socorro.unittest.testlib.util as testutil

from unittestbase import PostgreSQLTestCase
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a point before unittestbase so we know it comes from the same directory and is not a global Python module.

from .unittestbase import PostgreSQLTestCase

@adngdb
Copy link
Contributor

adngdb commented Mar 27, 2012

Code is good and tested, doc needs a bit of work before I r+.

@ghost
Copy link
Author

ghost commented Mar 27, 2012

Latest documentation changes made and PR updated

@adngdb
Copy link
Contributor

adngdb commented Mar 27, 2012

r+

Excellent work Schalk, thank you!

adngdb added a commit that referenced this pull request Mar 27, 2012
…ong-731325

Ensure throttle level is always set fixes bug 731325
@adngdb adngdb merged commit 5fc4c00 into mozilla-services:master Mar 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant