View Source ElixirAuthGithub.HTTPoisonMock (ElixirAuthGithub v1.6.2)
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
get/3
stubs the HTTPoison get! function when parameters match test vars.
post/3
stubs the HTTPoison post! function when parameters match test vars.
Link to this section Functions
get/3
stubs the HTTPoison get! function when parameters match test vars.
post/3
stubs the HTTPoison post! function when parameters match test vars.