summaryrefslogtreecommitdiff
path: root/tests/check_framework
AgeCommit message (Collapse)Author
2016-09-01Clarified URL regex check message with respect to include().Riccardo Magliocchetti
2016-08-16Fixed crash comparing CheckMessage objects to non-CheckMessage objects.Adam Chainz
2016-08-16Added tests for check Message equality.Adam Chainz
2016-08-10Refs #26947 -- Added a deployment system check for SECURE_HSTS_PRELOAD.Ed Morley
2016-06-28Replaced use of TestCase.fail() with assertRaises().Tim Graham
Also removed try/except/fail antipattern that hides exceptions.
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-06-14Removed usage of a few deprecated unittest assertions.Ville Skyttä
2016-05-17Refs #26601 -- Added a warning if both MIDDLEWARE AND MIDDLEWARE_CLASSES are ↵Tim Graham
set.
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-04-30Fixed #26440 -- Added a warning for non-url()s in urlpatterns.Alasdair Nicol
Thanks Burhan Khalid for the initial patch and knbk/timgraham for review.
2016-04-29Added an explicit test that URL checks are recursive.Alasdair Nicol
2016-04-08Fixed #26351 -- Added MySQL check to warn about strict mode optionClaude Paroz
Thanks Adam Chainz for the initial implementation in django-mysql. Thanks Adam Chainz, Tim Graham, and Shai Berger for the reviews.
2016-04-08Refs #26351 -- Added check hook to support database-related checksClaude Paroz
Thanks Tim Graham and Shai Berger for the reviews.
2016-03-21Fixed #26365 -- Added a system check to ensure "string_is_invalid" is a string.Vincenzo Pandolfo
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-02-12Updated allow_migrate() signature in check framework testsMarkus Holtermann
2016-02-01Fixed #26155 -- Skipped URL checks if no ROOTURL_CONF setting.Buddy Lindsey, Jr
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-06Fixed #25746 -- Isolated inlined test models registration.Simon Charette
Thanks to Tim for the review.
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-10-05Fixed #25500 -- Added --fail-level option to check command.Jon Dufresne
This option specifies the level that check command exits with a non-zero status. Default is ``ERROR``.
2015-09-21Refs #23813 -- Moved URLconfs into module and tidied docstrings.Alasdair Nicol
2015-09-21Fixed #23813 -- Added checks for common URL pattern errorsAlasdair Nicol
Thanks jwa and lamby for the suggestions, and timgraham and jarshwah for their reviews.
2015-09-19Used more specific assertion in check_framework tests.Alasdair Nicol
2015-09-18Fixed #25034 -- Converted caches ImproperlyConfigured error to a system check.Tom Christie
2015-08-28Fixed #25318 -- Made SILENCED_SYSTEM_CHECKS suppress all messages.Tim Graham
Previously, messages of ERROR level or higher were printed to the console.
2015-08-12Fixed #25172 -- Fixed check framework to work with multiple databases.Ion Scerbatiuc
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-15Fixed #24966 -- Added deployment system check for empty ALLOWED_HOSTS.rroskam
2015-07-13Fixed #25079 -- Added warning if both TEMPLATES and TEMPLATE_* settings are ↵Daniel Roseman
defined. Django ignores the value of the TEMPLATE_* settings if TEMPLATES is also set, which is confusing for users following older tutorials. This change adds a system check that warns if any of the TEMPLATE_* settings have changed from their defaults but the TEMPLATES dict is also non-empty. Removed the TEMPLATE_DIRS from the test settings file; this was marked for removal in 1.10 but no tests fail if it is removed now.
2015-06-08Fixed tests from refs #24922 when run in reverse.Tim Graham
2015-06-06Fixed #24922 -- Added system check for templates settingSergei Maertens
If `'loaders'` is present in the `TEMPLATES` options together with `APP_DIRS` set to `True`, the template engine raises an exception. This conflict is now detected by the system check templates.E001.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-02-09Removed Django 1.7 MIDDLEWARE_CLASSES upgrade check.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-05Fixed test failures introduced in refs #23861.Tim Graham
2015-01-05Fixed #23861 -- Added an API to deprecate model fields.Tim Graham
Thanks Markus Holterman and Berker Peksag for review.
2014-11-27Fixed #23338 -- Added warning when unique=True on ForeigKeyDiego Guimarães
Thanks Jonathan Lindén for the initial patch, and Tim Graham and Gabe Jackson for the suggestions.
2014-11-13Fixed #23765 -- Removed BooleanField default check which often yielded false ↵Tim Graham
positives.
2014-11-11Fixed #23750 -- Allowed core.checks.register to be used as a functionaverybigant
2014-10-17Fixed #23469 -- Removed test runner compatibility check which often yielded ↵Tim Graham
false positives.
2014-10-16Fixed #23615 -- Validate that a Model instance's "check" attribute is a method.Rigel Di Scala
The "check" name is a reserved word used by Django's check framework, and cannot be redefined as something else other than a method, or the check framework will raise an error. This change amends the django.core.checks.model_check.check_all_models() function, so that it verifies that a model instance's attribute "check" is actually a method. This new check is assigned the id "models.E020".
2014-10-16Minor cleanup in the check_framework test package.Loic Bistuer
2014-09-12Fixed #17101 -- Integrated django-secure and added check --deploy optionTim Graham
Thanks Carl Meyer for django-secure and for reviewing. Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and Jorge Carleitao for reviews.
2014-06-30Added spaces to message from 4c39c270af91ddbc213e077fc06b4bf67c7c6e99.Tim Graham
2014-06-13Fixed #22477 -- Removed contrib middleware from the global settings defaults.mlavin
Also added a compatibility check for changed middleware defaults. Forwardport of d94de802d3 from stable/1.7.x
2014-04-18Fixed a test failure introduced by 214d1e1b0f.Simon Charette
2014-04-10Fixed #22194 -- Added --list-tags option to check command.Tim Graham
Thanks Elvard for the patch.
2014-03-03Corrected expected test output to allow for cleanups in signal and ↵Russell Keith-Magee
compatibility checks.