diff --git a/django/test/simple.py b/django/test/simple.py
index a64ed96..0fc154f 100644
a
|
b
|
def reorder_suite(suite, classes):
|
232 | 232 | |
233 | 233 | |
234 | 234 | class DjangoTestSuiteRunner(object): |
235 | | def __init__(self, verbosity=1, interactive=True, failfast=True): |
| 235 | def __init__(self, verbosity=1, interactive=True, failfast=True, **kwargs): |
236 | 236 | self.verbosity = verbosity |
237 | 237 | self.interactive = interactive |
238 | 238 | self.failfast = failfast |
239 | 239 | |
240 | | def setup_test_environment(self): |
| 240 | def setup_test_environment(self, **kwargs): |
241 | 241 | setup_test_environment() |
242 | 242 | settings.DEBUG = False |
243 | 243 | |
244 | | def build_suite(self, test_labels, extra_tests=None): |
| 244 | def build_suite(self, test_labels, extra_tests=None, **kwargs): |
245 | 245 | suite = unittest.TestSuite() |
246 | 246 | |
247 | 247 | if test_labels: |
… |
… |
class DjangoTestSuiteRunner(object):
|
261 | 261 | |
262 | 262 | return reorder_suite(suite, (TestCase,)) |
263 | 263 | |
264 | | def setup_databases(self): |
| 264 | def setup_databases(self, **kwargs): |
265 | 265 | from django.db import connections |
266 | 266 | old_names = [] |
267 | 267 | mirrors = [] |
… |
… |
class DjangoTestSuiteRunner(object):
|
278 | 278 | connection.creation.create_test_db(self.verbosity, autoclobber=not self.interactive) |
279 | 279 | return old_names, mirrors |
280 | 280 | |
281 | | def run_suite(self, suite): |
| 281 | def run_suite(self, suite, **kwargs): |
282 | 282 | return DjangoTestRunner(verbosity=self.verbosity, failfast=self.failfast).run(suite) |
283 | 283 | |
284 | | def teardown_databases(self, old_config): |
| 284 | def teardown_databases(self, old_config, **kwargs): |
285 | 285 | from django.db import connections |
286 | 286 | old_names, mirrors = old_config |
287 | 287 | # Point all the mirrors back to the originals |
… |
… |
class DjangoTestSuiteRunner(object):
|
291 | 291 | for connection, old_name in old_names: |
292 | 292 | connection.creation.destroy_test_db(old_name, self.verbosity) |
293 | 293 | |
294 | | def teardown_test_environment(self): |
| 294 | def teardown_test_environment(self, **kwargs): |
295 | 295 | teardown_test_environment() |
296 | 296 | |
297 | | def suite_result(self, result): |
| 297 | def suite_result(self, suite, result, **kwargs): |
298 | 298 | return len(result.failures) + len(result.errors) |
299 | 299 | |
300 | | def run_tests(self, test_labels, extra_tests=None): |
| 300 | def run_tests(self, test_labels, extra_tests=None, **kwargs): |
301 | 301 | """ |
302 | 302 | Run the unit tests for all the test labels in the provided list. |
303 | 303 | Labels must be of the form: |
… |
… |
class DjangoTestSuiteRunner(object):
|
322 | 322 | result = self.run_suite(suite) |
323 | 323 | self.teardown_databases(old_config) |
324 | 324 | self.teardown_test_environment() |
325 | | return self.suite_result(result) |
| 325 | return self.suite_result(suite, result) |
326 | 326 | |
327 | 327 | def run_tests(test_labels, verbosity=1, interactive=True, failfast=False, extra_tests=None): |
328 | 328 | import warnings |