An adapter for unit testing with requests