Last active
August 14, 2016 08:15
-
-
Save essanpupil/6ae01e8dff5a1454880b3349116c6c65 to your computer and use it in GitHub Desktop.
django test runner sample to add custom command line test argument
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
| from django.test.runner import DiscoverRunner | |
| class CustomTestRunner(DiscoverRunner): | |
| @classmethod | |
| def add_arguments(cls, parser): | |
| parser.add_argument('--headless', | |
| action='store_true', default=False, dest='headless', | |
| help='Add this options to do headless browser testing') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment