Skip to content

Commit

Permalink
Improve runtests.py to run specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Dec 28, 2015
1 parent 07242d2 commit c2b7e75
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@
SITE_ID = 3,
)

DEFAULT_TEST_APPS = [
'polymorphic',
]


def runtests():
argv = sys.argv[:1] + ['test', 'polymorphic', '--traceback'] + sys.argv[1:]
other_args = list(filter(lambda arg: arg.startswith('-'), sys.argv[1:]))
test_apps = list(filter(lambda arg: not arg.startswith('-'), sys.argv[1:])) or DEFAULT_TEST_APPS
argv = sys.argv[:1] + ['test', '--traceback'] + other_args + test_apps
execute_from_command_line(argv)

if __name__ == '__main__':
Expand Down

0 comments on commit c2b7e75

Please sign in to comment.