appsembler / xblock-grade-fetcher

Grade Fetcher XBlock
MIT License
2 stars 1 forks source link

test setup #13

Closed thraxil closed 2 years ago

thraxil commented 2 years ago

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).