@@ -75,7 +75,7 @@ def test_convert_node_links():
7575 assert link0 ["name" ] == "samples"
7676 assert link0 ["backref" ] == "lipidomics_files"
7777 assert link0 ["target_type" ] == "sample"
78- assert link0 ["multiplicity" ] == "many_to_one "
78+ assert link0 ["multiplicity" ] == "one_to_many "
7979 assert link0 ["required" ] is True
8080 assert "label" in link0 and link0 ["label" ] is 'part_of'
8181
@@ -84,7 +84,7 @@ def test_convert_node_links():
8484 assert link1 ["name" ] == "projects"
8585 assert link1 ["backref" ] == "samples"
8686 assert link1 ["target_type" ] == "project"
87- assert link1 ["multiplicity" ] == "one_to_many "
87+ assert link1 ["multiplicity" ] == "many_to_one "
8888 assert link1 ["required" ] is True
8989 assert "label" in link1 and link1 ["label" ] is 'part_of'
9090
@@ -448,8 +448,8 @@ def test_construct_prop_lipidomics_file(fixture_input_yaml_pass):
448448 result = construct_props ("lipidomics_file" , fixture_input_yaml_pass )
449449 expected = {
450450 "$ref" : "_definitions.yaml#/data_file_properties" ,
451- "samples" : {"$ref" : "_definitions.yaml#/to_many " },
452- "assays" : {"$ref" : "_definitions.yaml#/to_many " },
451+ "samples" : {"$ref" : "_definitions.yaml#/to_one " },
452+ "assays" : {"$ref" : "_definitions.yaml#/to_one " },
453453 "core_metadata_collections" : {"$ref" : "_definitions.yaml#/to_one" },
454454 'cv' : {'description' : 'Coefficient of variation (%)' , 'type' : 'number' }
455455
@@ -507,7 +507,7 @@ def test_construct_prop_sample(fixture_input_yaml_pass):
507507 "description" : "Free text notes (string)"
508508 },
509509 "projects" : {
510- "$ref" : "_definitions.yaml#/to_many "
510+ "$ref" : "_definitions.yaml#/to_one "
511511 }
512512 }
513513 assert result == expected
@@ -562,15 +562,15 @@ def fixture_expected_output_lipid():
562562 'backref' : 'lipidomics_files' ,
563563 'label' : 'part_of' ,
564564 'target_type' : 'sample' ,
565- 'multiplicity' : 'one_to_many ' ,
565+ 'multiplicity' : 'many_to_one ' ,
566566 'required' : True
567567 },
568568 {
569569 'name' : 'assays' ,
570570 'backref' : 'lipidomics_files' ,
571571 'label' : 'part_of' ,
572572 'target_type' : 'assay' ,
573- 'multiplicity' : 'one_to_many ' ,
573+ 'multiplicity' : 'many_to_one ' ,
574574 'required' : True
575575 },
576576 {
@@ -585,8 +585,8 @@ def fixture_expected_output_lipid():
585585 }],
586586 'properties' : {
587587 '$ref' : '_definitions.yaml#/data_file_properties' ,
588- 'samples' : {'$ref' : '_definitions.yaml#/to_many ' },
589- 'assays' : {'$ref' : '_definitions.yaml#/to_many ' },
588+ 'samples' : {'$ref' : '_definitions.yaml#/to_one ' },
589+ 'assays' : {'$ref' : '_definitions.yaml#/to_one ' },
590590 'core_metadata_collections' : {'$ref' : '_definitions.yaml#/to_one' },
591591 'cv' : {'description' : 'Coefficient of variation (%)' , 'type' : 'number' }
592592 },
0 commit comments