@@ -1327,7 +1327,6 @@ def get_bom_with_definitions_and_detailed_standards() -> Bom:
13271327 version = '1.2.3' ,
13281328 description = 'Some description' ,
13291329 owner = 'Some Owner' ,
1330- external_references = [get_external_reference_1 ()],
13311330 requirements = [
13321331 req1 := Requirement (
13331332 bom_ref = 'req-1' ,
@@ -1336,7 +1335,11 @@ def get_bom_with_definitions_and_detailed_standards() -> Bom:
13361335 text = 'some requirement text' ,
13371336 descriptions = ['Requirement 1 described here' , 'and here' ],
13381337 open_cre = [CreId ('CRE:1-2' )],
1339- properties = [Property (name = 'key1' , value = 'val1' )]
1338+ properties = [
1339+ Property (name = 'key1' , value = 'val1a' ),
1340+ Property (name = 'key1' , value = 'val1b' ),
1341+ ],
1342+ external_references = [get_external_reference_2 ()],
13401343 ),
13411344 req2 := Requirement (
13421345 bom_ref = 'req-2' ,
@@ -1345,34 +1348,34 @@ def get_bom_with_definitions_and_detailed_standards() -> Bom:
13451348 text = 'some requirement text' ,
13461349 descriptions = ['Requirement 2 described here' ],
13471350 open_cre = [CreId ('CRE:1-2' ), CreId ('CRE:3-4' )],
1351+ parent = req1 .bom_ref ,
13481352 properties = [Property (name = 'key2' , value = 'val2' )],
1349- parent = req1 .bom_ref
13501353 ),
13511354 ],
13521355 levels = [
13531356 Level (
13541357 bom_ref = 'lvl-1' ,
13551358 identifier = 'LVL-1' ,
13561359 title = 'Level 1' ,
1357- description = 'Level 1 description'
1360+ description = 'Level 1 description' ,
13581361 # no requirements!
13591362 ),
13601363 Level (
13611364 bom_ref = 'lvl-2' ,
13621365 identifier = 'LVL-2' ,
13631366 title = 'Level 2' ,
13641367 description = 'Level 2 description' ,
1365- requirements = [req1 .bom_ref , req2 .bom_ref ]
1366- )
1367- ]
1368+ requirements = [req1 .bom_ref , req2 .bom_ref ],
1369+ ),
1370+ ],
1371+ external_references = [get_external_reference_1 ()],
13681372 ),
13691373 Standard (
13701374 bom_ref = 'other-standard' ,
13711375 name = 'Other Standard' ,
13721376 version = '1.0.0' ,
13731377 description = 'Other description' ,
13741378 owner = 'Other Owner' ,
1375- external_references = [get_external_reference_2 ()],
13761379 requirements = [
13771380 req3 := Requirement (
13781381 bom_ref = 'req-3' ,
@@ -1382,7 +1385,7 @@ def get_bom_with_definitions_and_detailed_standards() -> Bom:
13821385 descriptions = ['Requirement 3 described here' , 'and here' ],
13831386 open_cre = [CreId ('CRE:5-6' ), CreId ('CRE:7-8' )],
13841387 properties = [Property (name = 'key3' , value = 'val3' )]
1385- )
1388+ ),
13861389 ],
13871390 levels = [
13881391 Level (
@@ -1391,8 +1394,9 @@ def get_bom_with_definitions_and_detailed_standards() -> Bom:
13911394 title = 'Level 3' ,
13921395 description = 'Level 3 description' ,
13931396 requirements = [req3 .bom_ref ]
1394- )
1395- ]
1397+ ),
1398+ ],
1399+ external_references = [get_external_reference_2 ()],
13961400 )
13971401 ]))
13981402
0 commit comments