urbanplatform / django-keycloak-auth

Middleware to allow authorization using Keycloak and Django for django-rest-framework (DRF). This package should only be used in projects starting from scratch, since it overrides the users' management.
MIT License
32 stars 14 forks source link

Make test mixin explicit #15

Closed moritz89 closed 2 years ago

moritz89 commented 2 years ago

Currently KeycloakTestMixin overrides the setUp and tearDown functionality of TestCase to perform its user clean up. However, this approach is not very clear and can cause errors when not included in the correct order as a sub-class. Therefore, a more robust approach would be for the test class to call them explicitly in its own setUp and tearDown functions.