summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-04-21Fixed a remote code execution vulnerabilty in URL reversing.Tim Graham
Thanks Benjamin Bach for the report and initial patch. This is a security fix; disclosure to follow shortly.
2014-04-21Fixed table cleanup in GIS migration testsClaude Paroz
2014-04-21Merge pull request #2592 from prestontimmons/remove-test-runner-casesAymeric Augustin
Removed old test runner test cases.
2014-04-21Fixed monkeypatching in a staticfiles test.Florian Apolloner
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-21Consolidated expressions tests.Aymeric Augustin
2014-04-21Consolidated get_or_create tests.Aymeric Augustin
2014-04-21Further consolidated the model_inheritance tests.Aymeric Augustin
2014-04-21Fixed #22402 -- Consolidated model_inheritance tests.Aymeric Augustin
The model_inheritance_same_model_name tests couldn't be run without the model_inheritance tests. Make the problem go away by merging them. Thanks timo for the report.
2014-04-20Removed old test runner test cases.Preston Timmons
These files were added as part of #12658, which pertained to the old django.test.simple test runner. No tests call them anymore.
2014-04-20Fixed flake8 errors.Tim Graham
2014-04-18Fixed #22397 -- Issues removing M2M field with explicit through modelAndrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-18Fixed #22465 -- New assertion assertJSONNotEqualamatellanes
2014-04-18Fixed a test failure introduced by 214d1e1b0f.Simon Charette
2014-04-18Revert "Fixed #22397 -- Issues removing M2M field with explicit through model."Simon Charette
This reverts commit 00e3b9a2a992ee0b7288eeeb03e7cbd52ebc6dce. It's causing a regression when tested with the proxy_model_inheritance tests.
2014-04-17Fixed #22397 -- Issues removing M2M field with explicit through model.Andrew Gorcester
Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
2014-04-16Revert "Fixed #22401 -- Deprecated regular expression parsing of initial SQL ↵Tim Graham
in favor of installing sqlparse." This reverts commit 071c9337750b296d198cced56f3ffad0e176afb6. This introduced a regression on MySQL and custom SQL is deprecated.
2014-04-16Fixed #22378 -- Updated \d to [0-9]+ in urlpatterns of docs and tests.chriscauley
Thanks tomwys for the suggestion.
2014-04-16Fixed #22434 -- Retain ordering on related sliced subqueries.Justin Hamade
Thanks maciej.pawlisz for the report, and charettes for the review.
2014-04-16Fixed flake8 warnings introduced in recent commits.Simon Charette
2014-04-16Fixed #22460 -- Explicity remove constraints when dropping a related field.Motiejus Jakštys
2014-04-14Merge pull request #2553 from liavkoren-vmfarms/ticket_18586Julien Phalip
Ticket 18586
2014-04-14Refs #18586 - Refactored model get_or_create test.Liav Koren
Refactored get_or_create test into several smaller test functions across two different test classes. Also converted the comments over to docstrings.
2014-04-14Fixed #22356 -- Added a check to make sure unique_together fields are local.Marc Egli
2014-04-14Fixed #22369 -- Added count parameter to assertTemplateUsedJacob R. Rothenbuhler
2014-04-13Fixed #22350 -- Consistently serialize bytes and text in migrations.Simon Charette
Thanks to @treyhunner and Loïc for their suggestions and review.
2014-04-13Fixed stray comment introduced by d3b71b9.Loic Bistuer
Thanks Claude Paroz for the report.
2014-04-13Fixed #21760 -- prefetch_related used an inefficient query for reverse FK.valtron
Regression introduced by commit 9777442. Refs #21410.
2014-04-12Also allowed a non-overridden setting to be deletedClaude Paroz
Refs #20032, #18824. Thanks ztorstri at gmail.com for the report.
2014-04-12Fixed #22102 -- Made SimpleTestCase tests run before unittest.TestCase onesClaude Paroz
Thanks aptiko for the reporti and Tim Graham for the review.
2014-04-10Fixed #21202 -- Maintained atomicity when the server disconnects.Aymeric Augustin
Thanks intgr for the report. This commit doesn't include a test because I don't know how to emulate a database disconnection in a cross-database compatible way. Also simplified a 'backends' test that was constrained by this problem.
2014-04-10Fixed #21239 -- Maintained atomicity when closing the connection.Aymeric Augustin
Refs #15802 -- Reverted #7c657b24 as BaseDatabaseWrapper.close() now has a proper "finally" clause that may need to preserve self.connection.
2014-04-10Fixed #22194 -- Added --list-tags option to check command.Tim Graham
Thanks Elvard for the patch.
2014-04-10Fixed #22343 -- Disallowed select_for_update in autocommit modeShai Berger
The ticket was originally about two failing tests, which are fixed by putting their queries in transactions. Thanks Tim Graham for the report, Aymeric Augustin for the fix, and Simon Charette, Tim Graham & Loïc Bistuer for review.
2014-04-09Fixed #22401 -- Deprecated regular expression parsing of initial SQL in ↵julien 'pouete' Godin
favor of installing sqlparse.
2014-04-09Fixed #21553 -- Ensured unusable database connections get closed.Aymeric Augustin
2014-04-09Used more specific test assertions.Aymeric Augustin
2014-04-08Fixed #13408 -- Deprecated silent unpacking exception passing in for ↵e0ne
template tag. Thanks peterbe for the suggestion.
2014-04-08Refs #21230 -- removed direct settings manipulation from signed cookies testsHuu Nguyen
2014-04-07Fixed #21084 -- Used proxy model's content type for admin log entries.Alejandro Gómez
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22363 -- Correctly serialize `django.utils.datetime_safe` objects.Simon Charette
Thanks to linovia for the report.
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-03-31Fixed #22327 -- Turned BaseEmailBackend into a context managerDaniel Neuhäuser
Changed the BaseEmailBackend to allow usage as context manager to open and close connections.
2014-03-31Added test to confirm #12583 resolutionClaude Paroz
2014-03-31Fixed #22360 -- Fixed two non-deterministic tests in Python 3.4.Loic Bistuer
The order of admin's changelist filters in the querystring relied on dict ordering.
2014-03-31Fixed #21795 -- Made add_preserved_filters account for url prefixes.Loic Bistuer
Thanks to trac username honyczek for the report. Refs #6903.
2014-03-31Fixed #22319 -- Fixed migration external dependencies when there are ↵Loic Bistuer
internal dependencies.
2014-03-31Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.Loic Bistuer
2014-03-30Moved ServerHandler helper class to tests.Ramiro Morales
It has been only used in the builtin_servers tests since Django 1.4.