diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-22 12:34:52 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-02-22 12:34:52 +0000 |
| commit | 2fc19d8d6f369d4bd1ef8c7175c241a10e24c6f0 (patch) | |
| tree | efa7b666b451831d1418e99cb0c880eaf7f6218a /docs/topics | |
| parent | a9b2ac25d1760e1b8e01632544b7f503ccab8577 (diff) | |
Fixed #12932 -- Added an extra argument to suite_result() in the test runner, and added **kwargs as protection against future changes. Thanks to Eric Holscher for the report and patch.
This is BACKWARDS INCOMPATIBLE for anyone that has written a custom DjangoTestRunner class since it was introduced in r12255.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/testing.txt | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/docs/topics/testing.txt b/docs/topics/testing.txt index ecd71ce61a..04f891cf37 100644 --- a/docs/topics/testing.txt +++ b/docs/topics/testing.txt @@ -1371,7 +1371,7 @@ set up, execute and tear down the test suite. write your own test runner, ensure accept and handle the ``**kwargs`` parameter. -.. method:: DjangoTestSuiteRunner.run_tests(test_labels, extra_tests=None) +.. method:: DjangoTestSuiteRunner.run_tests(test_labels, extra_tests=None, **kwargs) Run the test suite. @@ -1392,11 +1392,11 @@ set up, execute and tear down the test suite. This method should return the number of tests that failed. -.. method:: DjangoTestSuiteRunner.setup_test_environment() +.. method:: DjangoTestSuiteRunner.setup_test_environment(**kwargs) Sets up the test environment ready for testing. -.. method:: DjangoTestSuiteRunner.build_suite(test_labels, extra_tests=None) +.. method:: DjangoTestSuiteRunner.build_suite(test_labels, extra_tests=None, **kwargs) Constructs a test suite that matches the test labels provided. @@ -1417,7 +1417,7 @@ set up, execute and tear down the test suite. Returns a ``TestSuite`` instance ready to be run. -.. method:: DjangoTestSuiteRunner.setup_databases() +.. method:: DjangoTestSuiteRunner.setup_databases(**kwargs) Creates the test databases. @@ -1425,13 +1425,13 @@ set up, execute and tear down the test suite. that have been made. This data will be provided to the ``teardown_databases()`` function at the conclusion of testing. -.. method:: DjangoTestSuiteRunner.run_suite(suite) +.. method:: DjangoTestSuiteRunner.run_suite(suite, **kwargs) Runs the test suite. Returns the result produced by the running the test suite. -.. method:: DjangoTestSuiteRunner.teardown_databases(old_config) +.. method:: DjangoTestSuiteRunner.teardown_databases(old_config, **kwargs) Destroys the test databases, restoring pre-test conditions. @@ -1439,13 +1439,14 @@ set up, execute and tear down the test suite. database configuration that need to be reversed. It is the return value of the ``setup_databases()`` method. -.. method:: DjangoTestSuiteRunner.teardown_test_environment() +.. method:: DjangoTestSuiteRunner.teardown_test_environment(**kwargs) Restores the pre-test environment. -.. method:: DjangoTestSuiteRunner.suite_result(result) +.. method:: DjangoTestSuiteRunner.suite_result(suite, result, **kwargs) - Computes and returns a return code based on a test suite result. + Computes and returns a return code based on a test suite, and the result + from that test suite. Testing utilities |
