Created
October 25, 2013 06:20
-
-
Save TheRatG/7150183 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Run all tests | |
```python | |
#file __init__.py | |
def load_tests(loader, standard_tests, pattern): | |
# top level directory cached on loader instance | |
this_dir = os.path.dirname(__file__) + '/tests' | |
package_tests = loader.discover(start_dir=this_dir, pattern=pattern) | |
standard_tests.addTests(package_tests) | |
return standard_tests | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment