id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 18088 "Add a ""supports_foreign_key"" database feature to ease testing" Anssi Kääriäinen nobody "Currently our test coverage for checking that foreign keys are properly enforced in the database are almost non-existent. One reason for this is that it has not been easy to write tests, as some backends do not support foreign keys and information of foreign key support has not been available as !skipUnlessDBFeature target. The attached patch adds a new database feature ""supports_foreign_keys"". The patch also uses this feature in regressiontests/backends/tests.py. The test results for backends tests are similar pre/post patch. MySQL + MyISAM fails one test both pre/post patch, other backends work correctly. This patch is needed for writing proper tests for #18081 for example." Cleanup/optimization closed Testing framework 1.4 Normal fixed Accepted 1 0 0 1 0 0