Last active
December 18, 2015 14:39
-
-
Save nloadholtes/5798450 to your computer and use it in GitHub Desktop.
nose main call
This file contains hidden or 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
# For unittest based tests, this works: | |
if __name__ == '__main__': | |
unittest.main() | |
# And the equivilent in nose is this: | |
if __name__ == '__main__': | |
import nose | |
nose.run(defaultTest=__name__) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment