assertValidOutput

lsst.pipe.base.testUtils.assertValidOutput(task: PipelineTask, result: Struct) None

Test that the output of a call to run conforms to its own connections.

Parameters:
tasklsst.pipe.base.PipelineTask

The task whose connections need validation. This is a fully-configured task object to support features such as optional outputs.

resultlsst.pipe.base.Struct

A result object produced by calling task.run.

Raises:
AssertionError:

Raised if result does not match what’s expected from task's connections.