brodriguez8774 / django-expanded-test-cases

Extends the existing Django TestCase class with extra functionality.
MIT License
2 stars 0 forks source link

Testing the Various TestCase Mixins #10

Open brodriguez8774 opened 2 years ago

brodriguez8774 commented 2 years ago

Currently, there is some "universal" logic that is implemented via various mixins. However, tests are currently only testing the direct ExpandedTestCase classes.

I don't know if Python UnitTesting allows this, but perhaps we can move the corresponding tests to also be in Mixins? That way we can verify that all ExpandedTestCase classes that use the logic are running it properly, but still avoid repeating code?

I feel like there's no reason this shouldn't be possible. But I've never tried it before so not sure. Technically doesn't matter at the moment anyways, until additional test case classes are made.