Development version.
Forge is under active development and testing. APIs, behaviour, coverage and
verification results may be incomplete or change without notice; published
PASS results are not a support guarantee or production-readiness claim.
assembly
Declare a reusable class that composes component occurrences.
Signature
assembly(cls)Use when
Decorate a class when the class itself represents a reusable assembly or subassembly built from component occurrences and their relationships.
Limits
build() must return a component occurrence or Assembly. The decorator does not itself create grouping or attachment relationships; those come from the objects returned by build().
Parameters
clsโ Model class whose build() returns a component occurrence or Assembly.
Example
@assembly
class Frame:
pass