mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user