NotPublishedError#

exception safir.metrics.NotPublishedError(*, expected, actual, actual_models, not_found)#

Bases: BaseAssertionError, Generic

Some expected items were not published.

Parameters:
  • expected (TypeAliasType)

  • actual (TypeAliasType)

  • actual_models (list[TypeVar(P, bound= EventPayload)])

  • not_found (TypeAliasType)

errormsg()#

Return a string to be added to the exception message.

Return type:

str