Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Used more specific assertion in check_framework tests.Alasdair Nicol2015-09-201-2/+2
|
* Fixed #25160 (again) -- Moved data loss check on reverse ↵Aymeric Augustin2015-09-191-5/+7
| | | | | | | | relations. Moved data loss check when assigning to a reverse one-to-one relation on an unsaved instance to Model.save(). This is exactly the same change as e4b813c but for reverse relations.
* Refs #13110 -- Fixed mistakes in the new multiple ↵Unai Zalakain2015-09-192-4/+4
| | | | enclosure feed tests
* Fixed #25424 -- Use force_str for test client URLs.Travis Jensen2015-09-191-0/+9
| | | | | | | | 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().
* Fixed #25390 -- Allowed specifying a start migration in ↵Markus Holtermann2015-09-191-0/+31
| | | | | | squashmigrations Thanks Tim Graham for the review.
* Fixed #24743, #24745 -- Optimized migration plan handlingMarkus Holtermann2015-09-193-0/+83
| | | | | | | | | | | | | | | | The change partly goes back to the old behavior for forwards migrations which should reduce the amount of memory consumption (#24745). However, by the way the current state computation is done (there is no `state_backwards` on a migration class) this change cannot be applied to backwards migrations. Hence rolling back migrations still requires the precomputation and storage of the intermediate migration states. This improvement also implies that Django does not handle mixed migration plans anymore. Mixed plans consist of a list of migrations where some are being applied and others are being unapplied. Thanks Andrew Godwin, Josh Smeaton and Tim Graham for the review as well as everybody involved on the ticket that kept me looking into the issue.
* Fixed #25269 -- Allowed method_decorator() to accept a ↵fabrizio ettore messina2015-09-191-8/+73
| | | | list/tuple of decorators.
* Fixed #24944 -- Added extra_email_context parameter to ↵sujayskumar2015-09-193-0/+15
| | | | password_reset() view.
* Fixed #13110 -- Added support for multiple enclosures in ↵Unai Zalakain2015-09-193-7/+104
| | | | | | | | | | | | | Atom feeds. The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is then used by the feed builder. If the feed is a RSS feed, an exception is raised as RSS feeds don't allow multiple enclosures per feed item. The ``item_enclosures`` hook defaults to an empty list or, if the ``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure`` built from the ``item_enclosure_url``, ``item_enclosure_length``, and ``item_enclosure_mime_type`` hooks.
* Fixed #25417 -- Added a field check for invalid default ↵Simon Charette2015-09-181-0/+68
| | | | values.
* Fixed #24636 -- Added model field validation for decimal ↵Iulia Chiriac2015-09-182-5/+42
| | | | places and max digits.
* Refs #25422 -- Added a test for a template tag with type ↵Thomas Orozco2015-09-182-0/+15
| | | | | | | annotations. This doesn't work in Django 1.8 but was fixed in Django 1.9 as a side effect of another change.
* Fixed #25034 -- Converted caches ImproperlyConfigured ↵Tom Christie2015-09-181-0/+35
| | | | error to a system check.
* Refs #20625 -- Forwardported tests and release notes for ↵Aric Coady2015-09-181-0/+4
| | | | | | | | queryset chaining fix. The issue was fixed on master due to the removal of ValuesQuerySet. Partial forwardport of 7d471fe6626de2b36b97ac04086d8ea307be8288 from stable/1.8.x
* Refs #14091 -- Fixed connection.queries on SQLite.Aymeric Augustin2015-09-172-39/+25
|
* Added a version requirement to mysqlclient in test ↵Tim Graham2015-09-171-1/+2
| | | | requirements.
* Added a version requirement to python-memcached in test ↵Tim Graham2015-09-171-1/+2
| | | | requirements.
* Fixed #25400 -- Fixed regression in nonexistent features ↵Daniel Hahler2015-09-171-0/+8
| | | | on gis backends.
* Refs #25294 -- Moved BoundField to django.forms.boundfield.Moritz Sichert2015-09-161-0/+3
|
* Refs #25149 -- Fixed regression in admin datetime widget ↵Gavin Wahl2015-09-161-0/+15
| | | | for timezones on the negative side of UTC.
* Fixed #24496 -- Added CSRF Referer checking against ↵Matt Robenolt2015-09-162-38/+111
| | | | | | | CSRF_COOKIE_DOMAIN. Thanks Seth Gottlieb for help with the documentation and Carl Meyer and Joshua Kehn for reviews.
* Fixed #25294 -- Allowed custom BoundFields on forms.Moritz Sichert2015-09-161-0/+11
|
* Fixed #25404 -- Added line numbers to ↵Dave Smith2015-09-153-6/+15
| | | | | | | TemplateSyntaxError strings. This makes it much easier to diagnose a test failure when all you have is the stack trace from an uncaught TemplateSyntaxError.
* Fixed runtests.py message about parallel processes.Aymeric Augustin2015-09-141-2/+3
| | | | | | It didn't work anymore since the commit that enabled test parallelization by default because parallel was equal to 0 at that point.
* Prevented --parallel from crashing on Windows.Aymeric Augustin2015-09-141-4/+1
| | | | | | 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 #25377 -- Changed Count queries to execute ↵Adam Chainz2015-09-143-12/+19
| | | | COUNT(*) instead of COUNT('*').
* Fixed #25393 -- Fixed MySQL crash when adding text/blob ↵Ville Skyttä2015-09-141-0/+12
| | | | field with unhashable default.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-12111-1449/+5104
|
* Refs #24919 -- Raised more helpful error message for ↵Markus Holtermann2015-09-121-0/+13
| | | | disabled migrations
* Fixed #24919 -- Allowed disabling of migrations on a per ↵Markus Holtermann2015-09-121-0/+23
| | | | app basis
* Fixed #24765 -- Allowed template context updates to ↵Buddy Lindsey, Jr2015-09-111-0/+54
| | | | flatten a Context.
* Fixed #25382 -- Removed obsolete references to DateQuerySet.Renato Oliveira2015-09-112-4/+4
|
* Fixed #25374 -- Made ModelAdmin checks work on instances ↵Malcolm Box2015-09-113-66/+67
| | | | | | | instead of classes. This allows dynamically-generated attributes to be specified in checked ModelAdmin attributes without triggering errors.
* Fixed #25329 -- Prevented _nodb_connection from being ↵Adam Chainz2015-09-111-2/+0
| | | | left open
* Fixed a GeoIP2 test failure with the latest GeoIP2 database.Tim Graham2015-09-111-2/+2
| | | | | Düsseldorf now appears as Dusseldorf in the latest version of the GeoIP2 database.
* Documented that the parallel test runner doesn't work on ↵Aymeric Augustin2015-09-101-1/+4
| | | | Windows.
* Enabled parallel testing by default in runtests.py.Aymeric Augustin2015-09-102-5/+19
|
* Changed database connection duplication technique.Aymeric Augustin2015-09-093-27/+13
| | | | | | This new technique is more straightforward and compatible with test parallelization, where the effective database connection settings no longer match settings.DATABASES.
* Serialized some tests that interact with the filesystem.Aymeric Augustin2015-09-092-7/+14
| | | | | Considering the APIs exercised by these test cases, it's hard to make them independent.
* Prevented staticfiles test from colliding when run in ↵Aymeric Augustin2015-09-093-45/+56
| | | | | | | | parallel. This requires that each test never alters files in static directories collected by other tests. The alternative is to add a temporary directory to STATICFILES_DIRS or a new app to INSTALLED_APPS.
* Allowed a port range for the liveserver by default.Aymeric Augustin2015-09-091-1/+1
| | | | This is required for running tests in parallel.
* Adjusted tests that were messing with database ↵Aymeric Augustin2015-09-091-11/+26
| | | | | | | connections too heavily. The previous implementation would result in tests hitting the wrong database when running tests in parallel on multiple databases.
* Supported running admin_script testcases concurrently.Aymeric Augustin2015-09-091-29/+44
|
* Changed strategy for removing TMPDIR in runtests.py.Aymeric Augustin2015-09-091-9/+7
| | | | | | | | | Previously, a traceback would be displayed on exit because: - using some multiprocessing features creates a temporary directory - this directory would be inside TMPDIR - multiprocessing would attempt to remove it when a particular object was deallocated, after runtests.py had already removed it along with everything else in TMPDIR.
* Cloned databases for running tests in parallel.Aymeric Augustin2015-09-091-2/+2
|
* Implemented a parallel test runner.Aymeric Augustin2015-09-091-7/+16
|
* Refs #22258 -- Fixed an unclosed temporary file in ↵Tim Graham2015-09-091-16/+17
| | | | | | | fixtures test. This prevented the temporary directory from being removed on Windows.
* Refs #25300 -- Fixed reference to TextInput in a test.Moritz Sichert2015-09-091-2/+2
|
* Fixed #25135 -- Deprecated the contrib.admin allow_tags ↵Ola Sitarska2015-09-093-9/+51
| | | | | | attribute. Thanks Jaap Roes for the idea and initial patch.
* Refs #24215 -- Improved error message for unhandled lazy ↵Alex Hill2015-09-081-4/+34
| | | | model operations.