ElixirAuthGithub.HTTPoisonMock (ElixirAuthGithub v1.6.0) View Source

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

Link to this function

get!(url, headers \\ [], options \\ [])

View Source

get/3 stubs the HTTPoison get! function when parameters match test vars.

Link to this function

post!(url, body, headers \\ [], options \\ [])

View Source

post/3 stubs the HTTPoison post! function when parameters match test vars.