NotPublishedError#

exception safir.metrics.NotPublishedError[P: EventPayload](*, expected, actual, actual_models, not_found)#

Bases: BaseAssertionError[P], Generic[P]

Some expected items were not published.

Parameters:
  • expected (ModelDumpList)

  • actual (ModelDumpList)

  • actual_models (list[P])

  • not_found (ModelDumpList)

errormsg()#

Return a string to be added to the exception message.

Return type:

str

Overrides:

BaseAssertionError.errormsg