summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures/tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py
index c24e0806fa..a1ecf007ce 100644
--- a/tests/fixtures/tests.py
+++ b/tests/fixtures/tests.py
@@ -24,6 +24,17 @@ class TestCaseFixtureLoadingTests(TestCase):
])
+class SubclassTestCaseFixtureLoadingTests(TestCaseFixtureLoadingTests):
+ """
+ Make sure that subclasses can remove fixtures from parent class (#21089).
+ """
+ fixtures = []
+
+ def testClassFixtures(self):
+ "Check that there were no fixture objects installed"
+ self.assertEqual(Article.objects.count(), 0)
+
+
class DumpDataAssertMixin(object):
def _dumpdata_assert(self, args, output, format='json', natural_keys=False,