summaryrefslogtreecommitdiff
path: root/tests/contenttypes_tests/tests.py
AgeCommit message (Collapse)Author
2017-02-03Split up contenttypes_tests.Tim Graham
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
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 most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-13Made contenttypes and auth apps unavailable when not necessary in tests.Simon Charette
2017-01-07Simplified a contenttypes check test with mock.Adam Chainz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-06Fixed #24865 -- Added remove_stale_contenttypes management command.Tim Graham
Thanks Simon Charette for the review.
2016-08-10Refs #18682 -- Edited explanation in stale content type deletion.Tim Graham
Follow up to 8db889eaf7dce0cb715b075be32047c1b1b316da.
2016-07-03Fixed #18682 -- Expanded explanation in stale content type deletion. (#6869)Erik Romijn
2016-05-21Refs #24067 -- Fixed contenttypes rename tests failures on Oracle.Simon Charette
Broke the initial migration in two to work around #25530 and added 'django.contrib.auth' to the available_apps to make sure its tables are also flushed as Oracle doesn't implement cascade deletion in sql_flush(). Thanks Tim for the report.
2016-05-17Fixed #24067 -- Renamed content types upon model renaming.Simon Charette
Thanks to Tim for the extensive review.
2016-05-15Fixed #24075 -- Used post-migration models in contrib apps receivers.Simon Charette
Thanks Markus and Tim for the review.
2016-04-19Refs #26085, #11505 -- Cleared Site cache in contenttypes_tests.Tim Graham
2016-04-16Fixed #26085 -- Fixed contenttypes shortcut() view crash with a null fk to Site.dani poni
Thanks Fabien Schwob for the initial patch.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-02-12Removed unneeded hint=None/obj=None in system check messages.Tim Graham
2016-01-06Fixed #25746 -- Isolated inlined test models registration.Simon Charette
Thanks to Tim for the review.
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-10Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()Tim Graham
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-03-18Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.Karl Hobley
2015-03-05Converted test fixtures to setUpTestData methodsJosh Smeaton
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-16Fixed #24099 -- Removed contenttype.name deprecated fieldClaude Paroz
This finsishes the work started on #16803. Thanks Simon Charette, Tim Graham and Collin Anderson for the reviews.
2014-12-01Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs ↵wrwrwr
#23933.
2014-11-29Fixed #23930 -- Added copies of captured_std* managers from CPython's ↵wrwrwr
test.support. StringIO import was adapted for compatibility with Python 2.
2014-11-27Fixed #23338 -- Added warning when unique=True on ForeigKeyDiego Guimarães
Thanks Jonathan Lindén for the initial patch, and Tim Graham and Gabe Jackson for the suggestions.
2014-08-25Removed unnecessary absolute_imports.Tim Graham
2014-07-24Improved patching of sys.stdout in refs #23078.Tim Graham
2014-07-23Fixed #23078 -- Regression in update_contenttypes() interactivity.Nick Sandford
Thanks raymond at adaptiv.nl for the report.
2014-06-05Fixed #10811 -- Made assigning unsaved objects to FK, O2O, and GFK raise ↵Anubhav Joshi
ValueError. This prevents silent data loss. Thanks Aymeric Augustin for the initial patch and Loic Bistuer for the review.
2014-05-29Fixed #20401 -- ContentTypeManager.get_for_model reads from db_for_read.Antonis Christofides
Thanks Simon Charette and Tim Graham for the reviews.
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-03-03Fixed #16727 -- Added protocol-relative URL support to ↵Thomas Sorrel
contenttypes.views.shortcut.
2014-03-03Edited model and field checks for grammar and consistency.Russell Keith-Magee
2014-03-03Edited model check messages for grammar and consistency.Russell Keith-Magee
2014-03-03Cleanup of contrib.contenttypes check messages.Russell Keith-Magee
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-17Deborgified the app cache.Aymeric Augustin
Improved Andrew's hack to create temporary app caches to handle migrations. Now the main app cache has a "master" flag set to True (which is a non-default keyword argument, thus unlikely to be used by mistake). Other app cache instances have "master" set to False. The only sanctioned way to access the app cache is by importing django.core.apps.app_cache. If you were instanciating an app cache and relying on the Borg pattern, you'll have to refactor your code.
2013-12-17Moved the new app cache inside core.Aymeric Augustin
2013-12-17Moved django.db.models.loading to django.apps.cache.Aymeric Augustin
This commit doesn't contain any code changes; it's purely a refactoring.
2013-11-24Added more tests for ContentTypeManager.get_for_model.Antonis Christofides