summaryrefslogtreecommitdiff
path: root/tests/syndication_tests
AgeCommit message (Collapse)Author
2026-06-24Fixed #37183 -- Prevented writing control characters into XML attributes.Jacob Walls
`SimplerXMLGenerator` already rejected control characters (unsupported in XML 1.0) in element content, but attribute values were written unchecked, so unsanitized input could still produce an unparseable XML document. The existing check now runs over attribute values in `startElement()`. This covers both syndication feeds, where item data may flow into attributes such as `Atom` category terms, and the XML serializer, which wraps the error to identify the offending object.
2025-11-18Fixed #36733 -- Escaped attributes in Stylesheet.__str__().varunkasyap
Thanks Mustafa Barakat for the report, Baptiste Mispelon for the triage, and Jake Howard for the review.
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2024-06-18Fixed #12978 -- Added support for RSS feed stylesheets.Baptiste Mispelon
2022-05-26Fixed #22078 -- Fixed crash of Feed with decorated methods.Marcelo Galigniana
2022-05-26Refs #22078 -- Added syndication test for feeds with static methods.Marcelo Galigniana
2022-05-23Refs #22078 -- Added syndication test for feeds with callable objects.Marcelo Galigniana
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-05-27Fixed #32789 -- Made feeds emit elements with no content as self-closing tags.Mohammadreza Varasteh
2020-10-21Removed hardcoded pks in syndication tests.Octavio
2020-10-13Fixed #22490 -- Added tests for Feed.get_object().Octavio
2020-09-14Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick
2020-07-30Fixed #31822 -- Added support for comments URL per feed item.Viktor Garske
The item_comments hook returns a comments URL which is then used by the feed builder.
2020-04-15Removed unused __str__() methods in tests models.Author: Mads Jensen
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com>
2019-05-06Fixed #29352 -- Allowed specifying a Feed language.Tobias Kunze
2018-12-31Updated test URL patterns to use path() and re_path().Tim Graham
2017-09-03Refs #27804 -- Used subTest() in a syndication test.Mads Jensen
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #13110 -- Removed SyndicationFeed.add_item()'s enclosure argument.Tim Graham
Per deprecation timeline.
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-10-27Fixed #27327 -- Simplified time zone handling by requiring pytz.Tim Graham
2016-02-04Made multiline assertRaises* conform to flake8's E128 rule.Hasan
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-09-19Refs #13110 -- Fixed mistakes in the new multiple enclosure feed testsUnai Zalakain
2015-09-18Fixed #13110 -- Added support for multiple enclosures in Atom feeds.Unai Zalakain
The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is then used by the feed builder. If the feed is a RSS feed, an exception is raised as RSS feeds don't allow multiple enclosures per feed item. The ``item_enclosures`` hook defaults to an empty list or, if the ``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure`` built from the ``item_enclosure_url``, ``item_enclosure_length``, and ``item_enclosure_mime_type`` hooks.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-03-05Converted test fixtures to setUpTestData methodsJosh Smeaton
2015-02-06Fixed E265 comment styleCollin Anderson
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-12-11Cleanup cache in contrib.sites to prevent test interference -- refs #11505Thomas Chaumeny
2014-08-12Updated tests for added newlines in 68686430638215b5405b20bd767c0be392c9221d.Tim Graham
2014-08-12Added newlines to the ends of CSS, HTML, and JavaScript files missing them.Trey Hunner
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-16Removed an unused importAlex Gaynor
2014-05-16Fixed #22490 -- removed obsolete ComplexFeed class from syndication_testsNikolaus Schlemm
It was previously used in a test that was deprecated and then removed, this cruft can be removed now.
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
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.
2013-12-31Finished renaming syndication to syndication_testsClaude Paroz
2013-12-31Renamed syndication testsClaude Paroz
To resolve the conflict between application names.