django/tests/contenttypes_tests
Simon Charette 9a461cae3e [5.1.x] Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly.
Over the years we've had multiple instances of hit and misses when
emitting warnings: either setting the wrong stacklevel or not setting
it at all.

This work adds assertions for the existing warnings that were declaring
the correct stacklevel, but were lacking tests for it.

Backport of 57307bbc7d from main.
2024-08-28 11:47:15 -03:00
..
operations_migrations Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
__init__.py
models.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_checks.py Fixed #31169 -- Adapted the parallel test runner to use spawn. 2022-03-15 16:23:55 +01:00
test_fields.py [5.1.x] Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:47:15 -03:00
test_management.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
test_migrations.py Fixed #33563 -- Fixed contenttype reverse data migration crash with a multiple databases setup. 2022-03-08 06:22:03 +01:00
test_models.py [5.1.x] Fixed #35545, Refs #32833 -- Fixed ContentTypeManager.get_for_models() crash in CreateModel migrations. 2024-06-24 10:21:54 +02:00
test_operations.py Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
test_order_with_respect_to.py Fixed #26009 -- Fixed contenttypes_tests isolation. 2016-01-04 11:45:26 -05:00
test_views.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
urls.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00