Skip to content

Instantly share code, notes, and snippets.

@klement97
Created January 4, 2021 21:23
Show Gist options
  • Save klement97/1ed6ba60ae03de174647c6ad473cbb28 to your computer and use it in GitHub Desktop.
Save klement97/1ed6ba60ae03de174647c6ad473cbb28 to your computer and use it in GitHub Desktop.
class MockResponse:
# mock json() method always returns a specific testing dictionary
@staticmethod
def json():
return {"mock_key": "mock_response"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment