|
|
|
|
|
by riffraff
215 days ago
|
|
That works fine for files, but what if the integration is with a third party service for example? You can create an actual mock networked service but it's much more work. I think this is an example explaining what seems like a good practice for using mocks in python to me, the actual code in the post is barely "supporting cast". |
|
I use a browser extension for scraping actual backend responses, which downloads them with a filename convention the mock server understands. I mostly use it for development, but also for setting up screenshot tests. For example,
screenshot the app and pixel diff it screenshot…