summaryrefslogtreecommitdiff
path: root/django/contrib/flatpages/tests
AgeCommit message (Collapse)Author
2015-02-11Moved contrib.flatpages tests out of contrib.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-22Isolated a flatpages test; refs #11505.Tim Graham
2014-12-28Deprecated TEMPLATE_DIRS.Aymeric Augustin
2014-12-15Fixed #23884 -- Moved FlatPageSitemap into django.contrib.flatpages.Berker Peksag
2014-12-12Fixed template tag braces spacing.Kevin Marsh
2014-08-12Added newlines to the ends of CSS, HTML, and JavaScript files missing them.Trey Hunner
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
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-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-03Fixed flake8 E251 violationsMilton Mazzarri
2013-10-31Started attackign the next flake8 violationAlex Gaynor
2013-10-24Start attacking E231 violationsAlex Gaynor
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-07-30Updated flatpages tests to override CSRF_FAILURE_VIEW.Kirill Zaitsev
2013-06-19Removed several unused imports.Aymeric Augustin
2013-05-10Fixed #17365, #17366, #18727 -- Switched to discovery test runner.Carl Meyer
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
2013-04-02Updated flatpages tests for unittest2 discovery.Preston Timmons
2013-03-23Fixed #20117 -- Added missing translation override to fix flatpages test.matiasb
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.
2013-02-24Fixed #18862 -- Honored script prefix in FlatPage.get_absolute_url.Aymeric Augustin
2013-02-24URL-encoded URLs in FlatPage.get_absolute_url.Aymeric Augustin
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
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-04-28Fixed #18234: Avoided exception on flatpage addKaren Tracey
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
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-28Added __future__ import for Python 2.5 forgotten in r17402.Aymeric Augustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-01-28Fixed #12972 -- Validated that flatpages URLs start and (when appropriate) ↵Aymeric Augustin
end with a slash. Thanks jabapyth, claudep and kmtracey. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-17Fixed #17057 -- Corrected flatpage url uniqueness validation to account for ↵Carl Meyer
flatpage editing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-07Fixed #14678 -- Added validation to catch flatpages with the same URL on the ↵Carl Meyer
same site. Thanks seler for the report, and joni, graham_king, and j4nu5 for work on the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-11Fixed #14675 -- Completed removal of `from django.conf.urls.default import ↵Ramiro Morales
*` usage. This applies to both our own [test] code and documentation examples. Also: * Moved the functions and handlers from `django.conf.urls.defaults` up to `django.conf.urls` deprecating the former module. * Added documentation for `handler403`. * Tweaked the URLs topic document a bit. Thanks to pupeno and cdestigter for their great work contributing patches. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16818 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-20Switched to HTML5 doctype in all Django supplied templates.Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16050 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-09Fixed a bunch more tests that were failing in Oracle due to false ↵Ian Kelly
assumptions about the primary keys of objects. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15789 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 #5192 -- Modified flatpage admin form to allow ~ and . characters in ↵Russell Keith-Magee
flatpage names. Thanks to marco.giusti@gmail.com for the report, Idan Gazit for summarizing the issue on the ticket, and ctrochalakis for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13655 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-28Removed a stray DEBUG=True test setting introduced in r13641.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13650 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