Skip to content

0.0.3 (2020-02-06)

Choose a tag to compare

@Colin-b Colin-b released this 06 Feb 21:47
· 415 commits to master since this release
7c97ee6

Added

  • Allow to provide JSON response as python values.
  • Mock async httpx requests as well.
  • Allow to provide files and boundary for multipart response.
  • Allow to provide data as a dictionary for multipart response.
  • Allow to provide callbacks that are executed upon reception of a request.
  • Handle the fact that parameters may be introduced in httpx *Dispatcher.send method.
  • Allow to retrieve all matching requests with HTTPXMock.get_requests

Changed

  • method can now be provided even if not entirely upper cased.
  • content parameter renamed into data.
  • HTTPXMock.get_request now fails if more than one request match. Use HTTPXMock.get_request instead.
  • HTTPXMock.requests is now private, use HTTPXMock.get_requests instead.
  • HTTPXMock.responses is now private, it should not be accessed anyway.
  • url can now be a re.Pattern instance.