diff options
| author | markotibold | 2011-06-10 23:52:31 +0200 |
|---|---|---|
| committer | markotibold | 2011-06-10 23:52:31 +0200 |
| commit | f708b1a11c99f88db821567648b688445f30e986 (patch) | |
| tree | ec7c60e88a30524fa2b4a6196021f1cca07c545a /djangorestframework | |
| parent | a336f09157f2402213140925d933620e78c863d9 (diff) | |
| download | django-rest-framework-f708b1a11c99f88db821567648b688445f30e986.tar.bz2 | |
made it possible to pass args to runtests to specify the Testcase, or more specifically the mtest_method to run.
Diffstat (limited to 'djangorestframework')
| -rw-r--r-- | djangorestframework/runtests/runtests.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
