PY-18461: arguments not passed to django test runner correctly

Only several options were passed, not we pass all options
This commit is contained in:
Ilya.Kazakevich
2016-02-09 20:54:38 +03:00
parent 841de1e63b
commit ca3c3d38b9
+3 -1
View File
@@ -88,7 +88,9 @@ class PycharmTestCommand(Command):
TestRunner = self.get_runner()
if not inspect.ismethod(TestRunner):
failures = TestRunner(test_labels, verbosity=verbosity, interactive=interactive, failfast=failfast, keepdb='--keepdb' in sys.argv)
our_options = {"verbosity" : int(verbosity), "interactive" : interactive, "failfast" : failfast}
options.update(our_options)
failures = TestRunner(test_labels, **options)
else:
test_runner = TestRunner(verbosity=verbosity, interactive=interactive, failfast=failfast)
failures = test_runner.run_tests(test_labels)