summaryrefslogtreecommitdiff
path: root/tests/generic_views
AgeCommit message (Collapse)Author
2018-12-21Fixed #29750 -- Added View.setup() hook for class-based views.François Freitag
2018-12-04Tested exception messages in generic_views tests.François Freitag
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2018-11-13Moved duplicate author declarations to setUpTestData() in DeleteViewTests.oliver
2018-11-09Moved duplicate author declarations to setUpTestData() in UpdateViewTests.oliver
2018-10-30Increased test coverage of django/views/generic/dates.py.Hasan Ramezani
2018-10-29Fixed #29903 -- Added error message for invalid WeekArchiveView week_format.Hasan Ramezani
2018-10-27Added test coverage for views.generic.dates.MonthMixin.get_month() KeyError ↵Hasan Ramezani
branch.
2018-01-17Improved generic detail view error message for when pk or slug is missing.Vincent Poulailleau
2017-11-07Fixed #28719 -- Added a helpful exception if ↵Bjorn Kristinsson
MultipleObjectTemplateResponseMixin doesn't generate any template names.
2017-09-20Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-04Fixed #28082 -- Made BaseDateListView pass context from get_dated_items() to ↵Sebastian Sassi
subclasses. Thanks leon-matthews for the report and fix.
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-06Fixed #28331 -- Added ContextMixin.extra_context to allowing passing context ↵Bruno Alla
in as_view().
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-05-30Fixed #28209 -- Made date-based generic views return a 404 rather than crash ↵Adit Biswas
when given an out of range date.
2017-05-10Decreased max_length for char fields unless absolutely needed. (#8485)Florian Apolloner
2017-03-01Fixed #26911 -- Removed NoReverseMatch silencing in RedirectView.Grzegorz Tężycki
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed unneeded force_str callsClaude Paroz
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-12-08Imported specific models in a few tests that didn't.Tim Graham
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-06-28Replaced use of TestCase.fail() with assertRaises().Tim Graham
Also removed try/except/fail antipattern that hides exceptions.
2016-06-24Refs #17209 -- Added LoginView and LogoutView class-based viewsClaude Paroz
Thanks Tim Graham for the review.
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-12-31Fixed #26013 -- Moved django.core.urlresolvers to django.urls.Marten Kenbeek
Thanks to Tim Graham for the review.
2015-12-30Fixed #26018 -- Prevented unecessary get_form() call in ↵Chris Cogdon
FormMixin.get_context_data(). Changed "dict.setdefault" to "if x in dict" pattern so that get_form() would not be called unnecessarily, specifically in the case where FormMixin.form_invalid() calls get_context_data() with the current form.
2015-12-30Fixed #26006 -- Fixed incorrect object reference in ↵Chris Cogdon
SingleObjectMixin.get_context_object_name().
2015-11-21Fixed #25780 -- Removed redundant status code assertions from testsAlex Morozov
2015-11-11Fixed #25548 -- Prevented FormView.form_invalid() from discarding its form ↵Alex Morozov
argument.
2015-11-07Renamed a test file that has no tests.lobziik
2015-09-23Refs #23656 -- Required FormMixin.get_form() form_class parameter to be ↵Tim Graham
optional. Per deprecation timeline.
2015-09-23Refs #24133 -- Removed legacy formatting syntax in success_url placeholders.Tim Graham
Per deprecation timeline.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-04-28Fixed #24714 -- Used more specific assertions than assertEqual in tests.Alasdair Nicol
2015-04-25Fixed #24689 -- Fixed DetailView methods with deferred QuerySet.Artis Avotins
2015-04-24Fixed #24643 -- Added get_context_data() method to FormMixinAndrei Kulakov
2015-03-18Fixed #23960 -- Removed http.fix_location_headerClaude Paroz
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-03-05Converted test fixtures to setUpTestData methodsJosh Smeaton
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24263 -- Prevented extra queries on BaseDateDetailView with a custom ↵Tim Graham
queryset. Thanks jekka-ua for the report and patch.
2015-02-03Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin
Specifically in rendering shortcuts, template responses, and class-based views that return template responses. Also added a test for render_to_response(status=...) which was missing from fdbfc980. Thanks Tim and Carl for the review.