LearnableRequestMocker

class pyvo.utils.testing.LearnableRequestMocker(fixture_name, *, learning=False)[source]

Bases: Mocker

Create a new mocker adapter.

Parameters:
  • kw (str) – Pass the mock object through to the decorated function as this named keyword argument, rather than a positional argument.

  • real_http (bool) – True to send the request to the real requested uri if there is not a mock installed for it. Defaults to False.

Methods Summary

__call__(request)

Call self as a function.

pickle_response(request, response, cache_name)

unpickle_response(cache_name)

Methods Documentation

__call__(request)[source]

Call self as a function.

pickle_response(request, response, cache_name)[source]
unpickle_response(cache_name)[source]