[Django]-Stop abstract django.test TestCase class from running test also

7👍

✅

What about multiple inheritance?

from django.test import TestCase

class BaseTestCase:
    # ...

class ChildTestCaseN(BaseTestCase, TestCase):
    # ...

I couldn’t find anything about abstract test cases in Django. Where did you get that SetupTestCase class from?

Leave a comment