Setup to run actual unit tests. Just includes one dummy to get it going.
Uses Ahmed's trick (seen in the tahoe-auth0 repo) of mocking out openedx.core.djangoapps.site_configuration.helpers.
Locally, you should be able to just run tox and it will run the unit tests and flake8. PRs get tests run on both python 3.5 (current prod version) and 3.8 (ensure future compatability).
Setup to run actual unit tests. Just includes one dummy to get it going.
Uses Ahmed's trick (seen in the
tahoe-auth0
repo) of mocking outopenedx.core.djangoapps.site_configuration.helpers
.Locally, you should be able to just run
tox
and it will run the unit tests and flake8. PRs get tests run on both python 3.5 (current prod version) and 3.8 (ensure future compatability).