Created
April 3, 2016 12:38
-
-
Save matwey/543c8963d2470226e9ae2ce5ea5f970b to your computer and use it in GitHub Desktop.
DRF LiveServerTest
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
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| def runtests(): | |
| os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.test_settings") | |
| try: | |
| from django import setup | |
| setup() | |
| except ImportError: | |
| pass | |
| from django.core.management import call_command | |
| os.sys.exit(call_command("test", "tests.test_all", verbosity=2)) | |
| if __name__ == "__main__": | |
| runtests() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment