Refactor decorator/mixin tests for future maintainability
Originally, tests were more explicitly separated, to make sure I got all desired cases. Am now pretty confident with such. However, the redundancy and extra code from explicit defiition was making it overwhelming to come back to the code when verifying/fixing additional logic. All tests should effectively function the same and test the same content, but syntax is reworked to be much more condensed, and easier to modify or add new tests.
Showing
- tests/tests/test_decorators/base_test_case.py 35 additions, 14 deletionstests/tests/test_decorators/base_test_case.py
- tests/tests/test_decorators/test_login_required_mode.py 508 additions, 2604 deletionstests/tests/test_decorators/test_login_required_mode.py
- tests/tests/test_decorators/test_loose_mode.py 231 additions, 1082 deletionstests/tests/test_decorators/test_loose_mode.py
- tests/tests/test_decorators/test_strict_mode.py 758 additions, 4349 deletionstests/tests/test_decorators/test_strict_mode.py
- tests/tests/test_mixins/base_test_case.py 34 additions, 13 deletionstests/tests/test_mixins/base_test_case.py
- tests/tests/test_mixins/test_login_required_mode.py 504 additions, 2592 deletionstests/tests/test_mixins/test_login_required_mode.py
- tests/tests/test_mixins/test_loose_mode.py 402 additions, 1777 deletionstests/tests/test_mixins/test_loose_mode.py
- tests/tests/test_mixins/test_strict_mode.py 976 additions, 5213 deletionstests/tests/test_mixins/test_strict_mode.py
Please register or sign in to comment