Skip to content

Release v1.1.0

Choose a tag to compare

@Scarvy Scarvy released this 15 Oct 23:09
· 18 commits to main since this release

Added

  • Add an attribute last_response to the Client class. Help diagnose client requests to the API.

    •     self.last_reponse = {
              "method": method,
              "url": url,
              "request": kwargs, 
              "error": None,
          }
  • Add two new unit tests for the generate method. Test for different formats (eg. ‘csv’, ‘txt’).

  • Add more parameters to test_get_url.

  • Add unit test test_warning_for_no_api_key for api_key property

  • Add more detail to the "Usage" section of the README

Removed

  • Remove the count key in the _get_url method.
  • Remove raise_for_status function in __http_request method. The function was preventing MockarooExceptions from being raised properly.

Fixed

  • Fix __htttp_request not raising MockarooExceptions.
  • Fix the mistake in the generate method when returning JSON data. Keyword argument using the wrong key “fields” instead of “fmt”.