github: more complete mocking for app setup

This mocks the /app/installations and /installations/repositories
GitHub API calls to better validate the GitHub project initalization
in the driver.

It implements enough that we can use
GithubClientManager:_prime_installation_map() directly and better
tests the token issuing, etc.

Change-Id: I608f1540ef33b1a95595393e546afba308fef66a
This commit is contained in:
Ian Wienand
2021-09-23 16:44:36 +10:00
parent b3eb94e3b2
commit 403d1c2882
3 changed files with 96 additions and 11 deletions

View File

@@ -6,3 +6,4 @@ PyMySQL
psycopg2-binary
beautifulsoup4
graphene
requests_mock