made it possible to pass args to runtests to specify the Testcase, or more specifically the mtest_method to run.

This commit is contained in:
markotibold 2011-06-10 23:52:31 +02:00
parent a336f09157
commit f708b1a11c

View File

@ -27,7 +27,11 @@ def main():
failures = TestRunner(['djangorestframework'])
else:
test_runner = TestRunner()
failures = test_runner.run_tests(['djangorestframework'])
if len(sys.argv) > 1:
test_case = '.' + sys.argv[1]
else:
test_case = ''
failures = test_runner.run_tests(['djangorestframework' + test_case])
sys.exit(failures)