summaryrefslogtreecommitdiff
path: root/tests/settings_tests
AgeCommit message (Collapse)Author
2018-05-26[2.1.x] Reverted "Fixed #29324 -- Made Settings raise ImproperlyConfigured ↵Tim Graham
if SECRET_KEY is accessed and not set." This reverts commit b3cffde5559c4fa97625512d7ec41a674be26076 due to a regression and performance concerns. Backport of 5cc81cd9eb69f5f7a711412c02039b435c393135 from master
2018-05-09Fixed #29363 -- Added SimpleTestCase.assertWarnsMessage().Morgan Aubert
2018-04-17Fixed #29324 -- Made Settings raise ImproperlyConfigured if SECRET_KEY is ↵Jon Dufresne
accessed and not set.
2018-04-17Added a test for a settings error message.Tim Graham
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-07-26Improved test coverage for django.conf.Anton Samarchyan
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2016-12-23Fixed #27626 -- Moved MEDIA_URL/STATIC_URL validation to a system check.Adam Chainz
2016-12-22Used @override_settings for SECURE_PROXY_SSL_HEADER tests.Adam Chainz
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-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-04-23Fixed #26427 -- Ensured deleted setting doesn't appear in dir(settings)Claude Paroz
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2015-09-23Refs #23957 -- Required session verification per deprecation timeline.Tim Graham
2015-09-23Refs #24022 -- Removed the ssi tag per deprecation timeline.Tim Graham
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
2015-08-31Refs #24121 -- Added repr() to LazySettings, Settings, and UserSettingsHolder.Keryn Knight
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-05-09Fixed typo in settings_testsTim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-20Fixed typos in code comments.Adam Taylor
2014-12-28Deprecated TEMPLATE_LOADERS.Aymeric Augustin
2014-12-05Fixed #23957 -- Started deprecation toward requiring session verification.Tim Graham
Thanks Carl Meyer for review.
2014-11-17Adjusted tests for previous commit.Aymeric Augustin
The test was testing a use case that doesn't happen in real world projects: developers don't assign settings at run time (and Django explicitly doesn't support it).
2014-11-03Fixed #21281 -- Made override_settings act at class level when used as a ↵Thomas Chaumeny
TestCase decorator.
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-09-09Avoid the word "stupid".Aymeric Augustin
There's always a better word.
2014-09-05Revert "Fixed #23384 -- Allowed overriding part of a dictionary-type setting"Claude Paroz
This reverts commit 66757fee7e921ad4c35e0b3f80c25e026100b31c. Discussions have led to think that this functionality does not bring significant benefits to justify the added complexity. Read also discussions on ticket #22734.
2014-08-30Fixed #23384 -- Allowed overriding part of a dictionary-type settingClaude Paroz
This change is needed for upcoming changes where settings might be grouped in a parent dictionary. Thanks Tim Graham for the review.
2014-06-11Removed an unused local variable, fixes a flake8 errorAlex Gaynor
2014-06-10Fixed #22780 -- Checked that LOCALE_PATHS is really a tupleTim Schaffer
2014-04-12Also allowed a non-overridden setting to be deletedClaude Paroz
Refs #20032, #18824. Thanks ztorstri at gmail.com for the report.
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-01-20Removed some stray newlines which caused flake8 issuesAlex Gaynor
2014-01-20Fixes #21833 -- Fix UserSettingsHolder.is_overridden() and add tests.Carl Meyer
2013-12-31Removed an obsolete unicity check.Aymeric Augustin
It doesn't account for app configs. Refs #21679.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-23Added modify_settings to alter settings containing lists of values.Aymeric Augustin
2013-12-22Fixed a flaky test.Aymeric Augustin
2013-12-20Set stacklevel for the override_settings warning.Aymeric Augustin
Refs #19031.
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-10-15Fixed #21263 -- Fixed issue with override_settings in inherited classesClaude Paroz
When both parent and child classes are decorated with override_settings, child class settings should take precedence. Thanks Sephi for the report and Marc Tamlyn for the review.
2013-08-09Fixed test failures on Python 3 - refs #12288Tim Graham