PublishedTooFewError#

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

Bases: BaseAssertionError[P], Generic[P]

Expected more events than have actually been published.

Parameters:
  • expected (ModelDumpList)

  • actual (ModelDumpList)

  • actual_models (list[P])

errormsg()#

Return a string to be added to the exception message.

Return type:

str

Overrides:

BaseAssertionError.errormsg