gist:40bc84cbf2a90a654e74

Sign up for a GitHub account Sign in All Gists kyleterry / gist:40bc84cbf2a90a654e74 secret Created June 29, 2015 Code Revisions 1 /.sunken-menu-group /.sunken-menu-contents Embed HTTPS SSH You can clone with HTTPS or SSH . Download Gist /.only-with-full-nav View gist:40bc84cbf2a90a654e74 gistfile1.py Raw File suppressed. Click to show. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 # Context manager for mocking calls to the ESP API. # swap_with should be a dictionary of fake endpoints callbacks similar to # the one found in `pythia.esp.wrapper` # # Usage: # # In [1]: def mocked_external_accounts(*args, **kwargs): # ...: return [{'account_id': 1}] # ...: # # In [2]: mocked_endpoints = {'exte...

Linked on 2015-06-30 00:45:33 | Similar Links