def certificates(): d_type = factories.CertificateTypeFactory(sid="D") nine_type = factories.CertificateTypeFactory(sid="9") return { "D017": factories.CertificateFactory(sid="017", certificate_type=d_type), "D018": factories.CertificateFactory(sid="018", certificate_type=d_type), "9100": factories.CertificateFactory(sid="100", certificate_type=nine_type), }
def proofs_of_origin_measure_data(measure_data: Dict, proofs_of_origin_objects) -> Dict: return { "proofs_of_origin": [ factories.CertificateFactory(sid="123", certificate_type__sid="U"), ], **measure_data, }
def authorised_use_objects(): factories.MeasureConditionCodeFactory(code="B") factories.MeasureActionFactory(code="27") factories.MeasureActionFactory(code="08") factories.CertificateFactory(sid="990", certificate_type__sid="N")
def condition_measure_objects(): factories.MeasureConditionCodeFactory(code="B") factories.MeasureActionFactory(code="29") factories.MeasureActionFactory(code="09") factories.CertificateFactory(sid="001", certificate_type__sid="C")