Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/test
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25668 -- Misc spelling errorsVille Skyttä2015-11-031-1/+1
|
* Fixed #25611 -- Standardized descriptor signatures.Tim Graham2015-10-261-1/+1
|
* Removed deprecated TEMPLATE_* settings per deprecation ↵Tim Graham2015-09-241-5/+0
| | | | timeline.
* Refs #21977 -- Removed SimpleTestCase.urls per ↵Tim Graham2015-09-241-28/+3
| | | | deprecation timeline.
* Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham2015-09-241-1/+0
|
* Fixed #25424 -- Use force_str for test client URLs.Travis Jensen2015-09-191-1/+1
| | | | | | | | urlparse() fails with an AttributeError ("'__proxy__' object has no attribute 'decode'") if reverse_lazy is used to look up the URL (this is exactly the same problem that caused ticket #18776). The solution is to use force_str() on the path before handing it to urlparse().
* Prevented --parallel from crashing on Windows.Aymeric Augustin2015-09-141-0/+5
| | | | | | 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.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+4
|
* And fixed merge accident :-(Aymeric Augustin2015-09-101-4/+2
|
* Adjusted previous commit.Aymeric Augustin2015-09-101-4/+5
| | | | Sigh.
* Refs #20461 -- Made tblib optional for a passing test run.Aymeric Augustin2015-09-101-1/+8
| | | | This was the original intent.
* Refs #20461 -- Fixed parallel test runner on Python 2.7.Collin Anderson2015-09-101-4/+2
| | | | textwrap.indent() is new in Python 3.3.
* Avoided running more test processes than necessary.Aymeric Augustin2015-09-101-1/+11
| | | | | | This reduces the time spent cloning databases. Thanks Tim for the suggestion.
* Made it easier to customize the parallel test runner.Aymeric Augustin2015-09-091-3/+8
| | | | | Subclass private APIs is marginally better than monkey-patching them, even if it doesn't make a big difference in practice.
* Propagated database clone settings to new connections.Aymeric Augustin2015-09-091-1/+5
|
* Acknoweldeged a limitation of the parallel test runner.Aymeric Augustin2015-09-091-0/+54
| | | | | | 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.)
* Introduced a mixin for serializing tests.Aymeric Augustin2015-09-091-0/+29
|
* Allowed a port range for the liveserver by default.Aymeric Augustin2015-09-091-1/+1
| | | | This is required for running tests in parallel.
* Cloned databases for running tests in parallel.Aymeric Augustin2015-09-091-5/+48
|
* Implemented a parallel test runner.Aymeric Augustin2015-09-091-8/+226
|
* Refs #25328 -- Refactored LiveServerTestCase to make it ↵Jakub Gocławski2015-09-071-5/+14
| | | | extensible.
* Simplified deduplication of test databases.Aymeric Augustin2015-09-061-28/+22
| | | | | | | | | | | | 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.
* Stopped returning mirrors from setup_databases.Aymeric Augustin2015-09-061-5/+2
| | | | | The return value of setup_databases is only used as an argument for teardown_databases which doesn't need mirrors.
* Fixed #25357 -- Database deduplication on Oracle.Aymeric Augustin2015-09-061-7/+8
| | | | In order to reuse another database, Django must use set_as_test_mirror.
* Split setup_databases.Aymeric Augustin2015-09-061-6/+27
| | | | | It contained two sections separated by comments. It makes more sense to put each section in its own function.
* Moved an import to the toplevel.Aymeric Augustin2015-09-051-2/+1
|
* Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant2015-08-313-3/+0
|
* Fixed #24590 -- Cached calls to swappable_setting.Markus Holtermann2015-08-271-1/+11
| | | | | | | | | | Moved the lookup in Field.swappable_setting to Apps, and added an lru_cache to cache the results. Refs #24743 Thanks Marten Kenbeek for the initial work on the patch. Thanks Aymeric Augustin and Tim Graham for the review.
* Fixed #23727 -- Inhibited the post_migrate signal when ↵Tommy Beadle2015-08-241-1/+10
| | | | | | | | | | | | | | | | | | | | | | | using serialized_rollback. When using a TransactionTestCase with serialized_rollback=True, after creating the database and running its migrations (along with emitting the post_migrate signal), the contents of the database are serialized to _test_serialized_contents. After the first test case, _fixture_teardown() would flush the tables but then the post_migrate signal would be emitted and new rows (with new PKs) would be created in the django_content_type table. Then in any subsequent test cases in a suite, _fixture_setup() attempts to deserialize the content of _test_serialized_contents, but these rows are identical to the rows already in the database except for their PKs. This causes an IntegrityError due to the unique constraint in the django_content_type table. This change made it so that in the above scenario the post_migrate signal is not emitted after flushing the tables, since it will be repopulated during fixture_setup().
* Fixed #25163 -- Fixed exception handling in nested test ↵pscottdevos2015-08-111-3/+3
| | | | client requests.
* Fixed #25191 -- Added string diff to ↵Caio Ariede2015-08-041-0/+7
| | | | SimpleTestCase.assertXMLEqual() message.
* Fixed #25176 -- Prevented TestCase.setUpTestData() ↵Adam Chainz2015-08-011-1/+5
| | | | exception from leaking transaction.
* Fixed #25188 -- Improved message raised by ↵Tim Graham2015-07-311-6/+20
| | | | | | SimpleTestCase.assertRaisesMessage(). Thanks Chris Jerdonek for the suggestion and help with the patch.
* Fixed #25190 -- Deprecated callable_obj parameter to ↵Tim Graham2015-07-301-0/+4
| | | | | | assertRaisesMessage(). Thanks Aymeric Augustin for review.
* Fixed #20916 -- Added Client.force_login() to bypass ↵Jon Dufresne2015-07-011-26/+35
| | | | authentication.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-5/+6
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-5/+5
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Refs #24965 -- Added changes from accidentally reverted ↵Moritz Sichert2015-06-131-3/+4
| | | | file for last commit.
* Fixed #16860 -- Added password validation to ↵Erik Romijn2015-06-071-0/+7
| | | | django.contrib.auth.
* Fixed #19542: Made mirroring databases for tests work ↵Shai Berger2015-06-051-2/+2
| | | | | | | | | 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.
* Fixed #24773 -- Added a json() method on test client ↵Andy McKay2015-05-251-0/+8
| | | | responses.
* Fixed #17085, #24783 -- Refactored template library ↵Preston Timmons2015-05-211-3/+0
| | | | | | | | registration. * Converted the ``libraries`` and ``builtins`` globals of ``django.template.base`` into properties of the Engine class. * Added a public API for explicit registration of libraries and builtins.
* Fixed #24652 -- Disallowed query execution in ↵Simon Charette2015-05-201-0/+29
| | | | | | SimpleTestCase subclasses. Thanks to Tim and Anssi for the review.
* Added backwards compatibility for assertRaisesMessage ↵Tim Graham2015-05-181-0/+4
| | | | | | callable_obj param. This was broken in c2bc1cefdcbbf074408f4a4cace88b315cf9d652 (refs #23763).
* Fixed #23820 -- Supported per-database time zone.Aymeric Augustin2015-05-171-14/+14
| | | | | | | | | The primary use case is to interact with a third-party database (not primarily managed by Django) that doesn't support time zones and where datetimes are stored in local time when USE_TZ is True. Configuring a PostgreSQL database with the TIME_ZONE option while USE_TZ is False used to result in silent data corruption. Now this is an error.
* Refs #23763 -- Silenced ↵Tim Graham2015-05-161-5/+3
| | | | | | SimpleTestCase.assertRaisesMessage() deprecation warning on Python 3.5. Deprecation warning was introduced in https://bugs.python.org/issue24134
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-1/+1
|
* Fixed #24526 -- Combined django.request/security loggers ↵Tim Graham2015-04-241-0/+15
| | | | | | with the root logger. Thanks Carl Meyer for review.
* Fixed #19259 -- Added group by selected primary keys ↵Simon Charette2015-03-302-3/+13
| | | | support.
* Fixed #23960 -- Removed http.fix_location_headerClaude Paroz2015-03-181-7/+21
| | | | Thanks Carl Meyer for the report and Tim Graham for the review.