thank you for the wonderful library. I use it quite a lot. Right now I would like to write a unit test for my own logic. Inside my logic I call the GitHub REST-API with githubkit. I did not manage to mock a call like
It seems you need to mock the githubkit's request and return the fake response data to your code. I think you can monkey patch the request function of the github instance.
Hi,
thank you for the wonderful library. I use it quite a lot. Right now I would like to write a unit test for my own logic. Inside my logic I call the GitHub REST-API with githubkit. I did not manage to mock a call like
I tried it like this: https://stackoverflow.com/questions/39457108/how-to-mock-nested-multiple-layers-of-return-objects-in-python
Do you have a tip how to mock githubkit?