Skip to content

Instantly share code, notes, and snippets.

@essanpupil
Last active August 14, 2016 08:15
Show Gist options
  • Select an option

  • Save essanpupil/6ae01e8dff5a1454880b3349116c6c65 to your computer and use it in GitHub Desktop.

Select an option

Save essanpupil/6ae01e8dff5a1454880b3349116c6c65 to your computer and use it in GitHub Desktop.
django test runner sample to add custom command line test argument
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