Saved Copies: Working Offline

A program that calls a web API can save each answer to a JSON file with the date it was saved, fall back to that copy when a request fails, and take the function that fetches as a parameter, so tests can hand in a stand-in and never touch the network.

By

Updated

Cheat sheet: Saved Copies: Working Offline
Category
Python
Level
Journeyman
Tags
Cache (software-development), Higher-Order Function (python), httpx, python, rest-api, Test Double, web-development