| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Since --parallel is documented not to work on Windows, it's better to
ignore it and run without parallelization than to crash. For example
this could simplify cross-platform test scripts.
|
| |
|
|
|
|
| |
Sigh.
|
|
|
|
| |
This was the original intent.
|
|
|
|
| |
textwrap.indent() is new in Python 3.3.
|
|
|
|
|
|
| |
This reduces the time spent cloning databases.
Thanks Tim for the suggestion.
|
|
|
|
|
| |
Subclass private APIs is marginally better than monkey-patching them,
even if it doesn't make a big difference in practice.
|
| |
|
|
|
|
|
|
| |
Notably it will fail to report a Model.DoesNotExist exceptions because
the class itself isn't pickleable. (Django has specific code to make its
instances pickleable.)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the same code path for:
- a database that has the same settings as another database
(as defined by test_db_signature)
- a database this is defined as a mirror of another database
There's no conceptual difference between these two cases.
Thanks Shai for the suggestion.
|
|
|
|
|
| |
The return value of setup_databases is only used as an argument for
teardown_databases which doesn't need mirrors.
|
|
|
|
| |
In order to reuse another database, Django must use set_as_test_mirror.
|
|
|
|
|
| |
It contained two sections separated by comments. It makes more sense to
put each section in its own function.
|
| |
|
|
|
|
|
|
|
|
|
| |
with Oracle
No tests are provided because there is no sane way to test database
settings within the Django test suite.
Thanks Aymeric Augustin for review.
|
| |
|
|
|
|
|
|
|
|
|
| |
Added a --debug-sql option for tests and runtests.py which outputs the
SQL logger for failing tests. When combined with --verbosity=2, it also
outputs the SQL for passing tests.
Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and
discussion.
|
|
|
|
| |
OrderedSet
|
|
|
|
|
|
|
|
|
| |
This is useful for debugging side effects affecting tests that
are usually executed before a given test. Full suite and pair
tests sort cases more or less deterministically, thus some test
cross-dependencies are easier to reveal by reversing the order.
Thanks Preston Timmons for the review.
|
| |
|
|
|
|
| |
Thanks gkoller for the report.
|
|
|
|
|
|
|
| |
Keeping backwards compatibility with test_runner.option_list is
tricky and would imply transforming an optparse.Option to an
argparse.Action. I choose to introduce a backwards incompatible
change because it only affects testing, not runtime behavior.
|
| |
|
| |
|
|
|
|
| |
between runs
|
| |
|
|
|
|
|
|
| |
unittest.TestCase ones
Thanks aptiko for the reporti and Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
| |
Change database test settings from "TEST_"-prefixed entries in the
database settings dictionary to setting in a dictionary that is itself
an entry "TEST" in the database settings.
Refs #21775
Thanks Josh Smeaton for review.
|
|
|
|
|
| |
Added test to verify an empty label performs discovery on the current
working directory.
|
|
|
|
|
|
| |
label doesn't point to a package or directory.
Thanks thepapermen for the report and Carl Meyer for the review.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Added DiscoverRunner.test_suite and .test_runner attributes.
Thanks tomchristie for the suggestion and jcd for the patch.
|
|
|
|
|
|
| |
attempting to tear down aliases
Thanks simonpercivall.
|
|
|
|
|
|
| |
properly handle aliases for default db.
Thanks simonpercivall.
|
|
|
|
| |
Refs #20680.
|
|
test runner.
Thanks to Preston Timmons for the bulk of the work on the patch, especially
updating Django's own test suite to comply with the requirements of the new
runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the
patch and the discovery runner.
Refs #11077, #17032, and #18670.
|