Make mock library available for testing in Django
|Reported by:||claudep||Owned by:||timgraham|
|Cc:||timo||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Basically the main options are:
- Vendor the mock library backport in Django and conditionally import that backport (we used to have that for unittest2).
- Use a strategy similar to the selenium dependency, that is having a test class or a mixin class explicitly used when we are using mock functionality in a test, and that class would skip the test when mock is not available.
- Have the mock library as a hard dependency for our test suite, checking its availability in runtests.py for Python < 3.3 with an appropriate message.
Change History (8)
comment:1 Changed 12 months ago by collinanderson
comment:4 Changed 11 months ago by timgraham
- Cc timo added
- Triage Stage changed from Unreviewed to Accepted
comment:5 Changed 8 months ago by timgraham
- Owner changed from nobody to timgraham
- Status changed from new to assigned