MockRegistryApi#

class kafkit.registry.sansio.MockRegistryApi(url='http://registry:8081', status_code=200, headers=None, body=b'')#

Bases: RegistryApi

A mock implementation of the RegistryApi client that doensn’t do network operations and provides attributes for introspection.

Parameters:
  • url (str, default: 'http://registry:8081') –

  • status_code (int, default: 200) –

  • headers (Optional[Mapping[str, str]], default: None) –

  • body (Any, default: b'') –

Attributes Summary

DEFAULT_HEADERS

Attributes Documentation

DEFAULT_HEADERS = {'content-type': 'application/vnd.schemaregistry.v1+json'}#