From f708b1a11c99f88db821567648b688445f30e986 Mon Sep 17 00:00:00 2001 From: markotibold Date: Fri, 10 Jun 2011 23:52:31 +0200 Subject: made it possible to pass args to runtests to specify the Testcase, or more specifically the mtest_method to run. --- djangorestframework/runtests/runtests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/djangorestframework/runtests/runtests.py b/djangorestframework/runtests/runtests.py index a3cdfa67..b98a496f 100644 --- a/djangorestframework/runtests/runtests.py +++ b/djangorestframework/runtests/runtests.py @@ -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) -- cgit v1.2.3