Gogs.HTTPoisonMock (gogs v0.1.0)
This is a set up to mock (stub) our API requests to the GitHub API so that we can test all of our code in ElixirAuthGithub. These are just functions that pattern match on the entries and return things in the way we expect, so that we can check the pipeline in ElixirAuthGithub.github_auth
Link to this section Summary
Link to this section Functions
Link to this function
make_repo_create_post_response_body(repo_name)
Link to this function
post(binary, body, headers)
post/3
stubs the HTTPoison post function when parameters match test vars.
feel free refactor this if you can make it pretty.