summaryrefslogtreecommitdiff
path: root/django/contrib/flatpages/tests/middleware.py
AgeCommit message (Collapse)Author
2013-04-02Updated flatpages tests for unittest2 discovery.Preston Timmons
2013-03-23Fixed #20048, #20060 -- Modified tests for contrib apps sensitive to custom ↵Russell Keith-Magee
User models. Thanks to matiasb for the report of #20060 and the draft patch for #20048.
2012-05-31Fixed #18408 -- Isolated flatpages tests from existing sites.Jens Page
Resolves Flatpages test issues by: - Creating an example_site fixture - Overriding project SITE_ID setting to 1 - Normalizing the use of the hardcoded (1) site_id to settings.SITE_ID
2012-03-31Used the override_settings decorator in the tests of auth, flatpages, and ↵Aymeric Augustin
formtools. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-07Minor renaming for consistency.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-04-20Fixed #6213 -- Updated the flatpages app to only append a slash if the ↵Jannis Leidel
flatpage actually exist. The FlatpageFallbackMiddleware (and the view) now only add a trailing slash and redirect if the resulting URL refers to an existing flatpage. Previously requesting /notaflatpageoravalidurl would redirect to /notaflatpageoravalidurl/, which would then raise a 404. Requesting /notaflatpageoravalidurl now will immediately raise a 404. Also, Redirects returned by flatpages are now permanent (301 status code) to match the behaviour of the CommonMiddleware. Thanks to Steve Losh for the initial work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16048 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13Fixed #14252 - django.contrib.flatpages unit tests assume default value for ↵Luke Plant
settings.LOGIN_URL Thanks to pmclanahan for report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-28Fixed #6932 -- Added a template tag that gives a list of available flatpages ↵Russell Keith-Magee
for a given user. Thanks to Dmitri Fedortchenko for the suggestion, and to Mnewman, faldridge and Simon Meers for their work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13654 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-27Fixed #14156 -- Modified the way CSRF protection is applied to flatpages so ↵Russell Keith-Magee
that the flatpage middleware doesn't cause all POSTs resulting in 404s to turn into 403s. Thanks to patrys for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13641 bcc190cf-cafb-0310-a4f2-bffc1f526a37