earthlab / abc-classroom

Tools to automate github classroom and autograding workflows
https://abc-classroom.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
29 stars 21 forks source link

use mocks in tests for external github API calls #194

Open kcranston opened 4 years ago

kcranston commented 4 years ago

There are several places in the code where we call github via the API. This code has no test coverage right now (to avoid calling the API each time we run the test suite and running into API rate limits). Ideally, we would mock the github response and / or local changes in tests that include a github call. This includes any code that calls the following methods in github.py:

lwasser commented 4 years ago

🐒