Gogs.HTTPoisonMock (gogs v0.2.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

Functions

post/3 stubs the HTTPoison post function when parameters match test vars. feel free refactor this if you can make it pretty.

post/3 stubs the HTTPoison post function when parameters match test vars. feel free refactor this if you can make it pretty.

Link to this section Functions

post/3 stubs the HTTPoison post function when parameters match test vars. feel free refactor this if you can make it pretty.

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.