1
0
mirror of https://github.com/django/django.git synced 2024-11-19 16:04:13 +00:00
Commit Graph

21430 Commits

Author SHA1 Message Date
Aymeric Augustin
7673759321 Fixed runtests.py message about parallel processes.
It didn't work anymore since the commit that enabled test
parallelization by default because parallel was equal to 0
at that point.
2015-09-14 22:52:04 +02:00
Aymeric Augustin
2425f6fda0 Prevented --parallel from crashing on Windows.
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.
2015-09-14 22:52:04 +02:00
Tim Graham
64d7a553e1 Fixed #25369 -- Corrected syndication's get_object() example. 2015-09-14 15:30:01 -04:00
Tim Graham
83ea3bc798 Reverted "Fixed #25203 -- Documented how to pass Apache environment variables to Django."
As discussed on the ticket, this isn't a pattern we should recommend.

This reverts commit 47016d4322.
2015-09-14 14:12:31 -04:00
Adam Chainz
3fe3887a2e Fixed #25377 -- Changed Count queries to execute COUNT(*) instead of COUNT('*'). 2015-09-14 13:41:35 -04:00
Ville Skyttä
4d933ad418 Fixed #25393 -- Fixed MySQL crash when adding text/blob field with unhashable default. 2015-09-14 12:25:08 -04:00
Kholid Fuadi
b8b776aabe Fixed typo in django/forms/utils.py docstring. 2015-09-14 08:49:15 -04:00
Tim Graham
f3e5a74646 Refs #25386 -- Added links to the OPTIONS of the built-in template backends. 2015-09-12 18:42:25 -04:00
Dražen Odobašić
b1e33ceced Fixed #23395 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
Markus Holtermann
84b0a8d2aa Fixed #25384 -- Ordered imports in newly created migration files
Partial forwardport of 3cc5cc7958 from
stable/1.8.x as the issue was already fixed in master in
a7bc00e17b
2015-09-12 21:37:18 +10:00
Markus Holtermann
2b98034fbb Cleaned up surrounding documentation 2015-09-12 10:38:15 +10:00
Markus Holtermann
f45ee19746 Refs #24919 -- Raised more helpful error message for disabled migrations 2015-09-12 10:38:15 +10:00
Markus Holtermann
a3c01b0dd8 Fixed #24919 -- Allowed disabling of migrations on a per app basis 2015-09-12 10:38:15 +10:00
Buddy Lindsey, Jr
ec704371e3 Fixed #24765 -- Allowed template context updates to flatten a Context. 2015-09-11 14:52:13 -04:00
Tim Graham
e7e8d30cae Refs #25381 -- Clarified that AppConfig model methods search only the current app. 2015-09-11 14:07:12 -04:00
Paul Rentschler
47016d4322 Fixed #25203 -- Documented how to pass Apache environment variables to Django. 2015-09-11 13:23:29 -04:00
Renato Oliveira
e3720b990a Fixed #25382 -- Removed obsolete references to DateQuerySet. 2015-09-11 12:16:06 -04:00
Ryan Allen
fba8655e88 Renamed admin doc image files to match the documentation they are for. 2015-09-11 12:01:13 -04:00
Ryan Allen
6e8ddbaa25 Fixed #25200 -- Updated admin screenshots in docs. 2015-09-11 12:00:10 -04:00
Malcolm Box
1d8eb0cae5 Fixed #25374 -- Made ModelAdmin checks work on instances instead of classes.
This allows dynamically-generated attributes to be specified in
checked ModelAdmin attributes without triggering errors.
2015-09-11 09:28:34 -04:00
Jose Carlos Menezes
cf99bae53a Fixed #25351 -- Added example for database test settings to docs. 2015-09-11 08:11:58 -04:00
Flavio Curella
0c7c18cc9e Fixed #25380 -- Added Postgres.app to the PostGIS options on OS X. 2015-09-11 07:58:46 -04:00
Adam Chainz
b2f6e421a3 Fixed #25329 -- Prevented _nodb_connection from being left open 2015-09-11 08:40:43 +02:00
Tim Graham
d3c92afe42 Fixed a GeoIP2 test failure with the latest GeoIP2 database.
Düsseldorf now appears as Dusseldorf in the latest version
of the GeoIP2 database.
2015-09-10 20:54:25 -04:00
Flavio Curella
dfced0921c Fixed #25379 -- Removed obsolete information from GeoDjango tutorial.
Django 1.9 drops support for PostgreSQL 9.0 where creating
a database using a template was needed.
2015-09-10 20:46:08 -04:00
Aymeric Augustin
0cc0e676c0 And fixed merge accident :-( 2015-09-10 18:24:03 +02:00
Aymeric Augustin
613ee39bf8 Adjusted previous commit.
Sigh.
2015-09-10 18:21:56 +02:00
Aymeric Augustin
968b02f8f0 Refs #20461 -- Made tblib optional for a passing test run.
This was the original intent.
2015-09-10 18:21:13 +02:00
Collin Anderson
c97b755a1c Refs #20461 -- Fixed parallel test runner on Python 2.7.
textwrap.indent() is new in Python 3.3.
2015-09-10 12:00:42 -04:00
Aymeric Augustin
b1a29541e5 Merge pull request #4761 from aaugustin/parallelize-tests-attempt-1
Fixed #20461 -- Allowed running tests in parallel.
2015-09-10 16:12:36 +02:00
Aymeric Augustin
a32206b365 Documented that the parallel test runner doesn't work on Windows. 2015-09-10 15:41:26 +02:00
Aymeric Augustin
710b4a7032 Avoided running more test processes than necessary.
This reduces the time spent cloning databases.

Thanks Tim for the suggestion.
2015-09-10 14:37:51 +02:00
Aymeric Augustin
33c7c2a557 Enabled parallel testing by default in runtests.py. 2015-09-10 13:34:05 +02:00
Aymeric Augustin
39bb66baad Made it easier to customize the parallel test runner.
Subclass private APIs is marginally better than monkey-patching them,
even if it doesn't make a big difference in practice.
2015-09-09 23:03:52 +02:00
Aymeric Augustin
05cea7fdbb Changed database connection duplication technique.
This new technique is more straightforward and compatible with test
parallelization, where the effective database connection settings no
longer match settings.DATABASES.
2015-09-09 23:03:51 +02:00
Aymeric Augustin
e8b49d4cc4 Propagated database clone settings to new connections. 2015-09-09 23:03:51 +02:00
Aymeric Augustin
0bd58e0efb Test parallelization isn't implemented on Oracle. 2015-09-09 23:03:51 +02:00
Aymeric Augustin
073ea9e852 Acknoweldeged a limitation of the parallel test runner.
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.)
2015-09-09 23:03:44 +02:00
Aymeric Augustin
b799a50c8e Serialized some tests that interact with the filesystem.
Considering the APIs exercised by these test cases, it's hard to make
them independent.
2015-09-09 23:01:17 +02:00
Aymeric Augustin
ba81386487 Introduced a mixin for serializing tests. 2015-09-09 23:01:17 +02:00
Aymeric Augustin
bf2c969eb7 Prevented staticfiles test from colliding when run in 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.
2015-09-09 23:01:17 +02:00
Aymeric Augustin
326bc0955b Allowed a port range for the liveserver by default.
This is required for running tests in parallel.
2015-09-09 23:01:16 +02:00
Aymeric Augustin
e39dd61808 Adjusted tests that were messing with database connections too heavily.
The previous implementation would result in tests hitting the wrong
database when running tests in parallel on multiple databases.
2015-09-09 23:01:16 +02:00
Aymeric Augustin
442baabd0b Supported running admin_script testcases concurrently. 2015-09-09 23:01:16 +02:00
Aymeric Augustin
d6be404e56 Changed strategy for removing TMPDIR in runtests.py.
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.
2015-09-09 23:01:15 +02:00
Aymeric Augustin
0586c061f0 Cloned databases for running tests in parallel. 2015-09-09 23:01:15 +02:00
Aymeric Augustin
cd9fcd4e80 Implemented a parallel test runner. 2015-09-09 23:01:10 +02:00
Daniel Hahler
acb833081d Fixed #25372 -- Fixed autocompletion for options of non-argparse commands. 2015-09-09 14:51:41 -04:00
Tim Graham
eaa3c88345 Refs #22258 -- Fixed an unclosed temporary file in fixtures test.
This prevented the temporary directory from being removed
on Windows.
2015-09-09 14:35:51 -04:00
Bibhas
4283a03843 Fixed #25371 -- Added reverse_sql and reverse_code examples to docs. 2015-09-09 14:20:47 -04:00