diff --git a/tests/nodes/primary_nodes/test_collection.py b/tests/nodes/primary_nodes/test_collection.py index 9b8e26a23..9f6726bcf 100644 --- a/tests/nodes/primary_nodes/test_collection.py +++ b/tests/nodes/primary_nodes/test_collection.py @@ -48,7 +48,7 @@ def test_create_complex_collection(simple_experiment_node, simple_inventory_node assert my_collection.inventory == [simple_inventory_node] assert my_collection.doi == my_cript_doi assert my_collection.citation == [complex_citation_node] - assert my_collection.my_collection_notes == my_collection_notes + assert my_collection.notes == my_collection_notes def test_collection_getters_and_setters(simple_experiment_node, simple_inventory_node, complex_citation_node) -> None: diff --git a/tests/nodes/primary_nodes/test_computation.py b/tests/nodes/primary_nodes/test_computation.py index a5e3c0a18..9657cb40c 100644 --- a/tests/nodes/primary_nodes/test_computation.py +++ b/tests/nodes/primary_nodes/test_computation.py @@ -16,7 +16,6 @@ def test_create_simple_computation_node() -> None: """ my_computation_type = "analysis" my_computation_name = "this is my computation name" - my_computation_notes = "this is my computation notes" my_computation_node = cript.Computation(name=my_computation_name, type=my_computation_type) @@ -24,7 +23,6 @@ def test_create_simple_computation_node() -> None: assert isinstance(my_computation_node, cript.Computation) assert my_computation_node.name == my_computation_name assert my_computation_node.type == my_computation_type - assert my_computation_node.notes == my_computation_notes def test_create_complex_computation_node(simple_data_node, complex_software_configuration_node, complex_condition_node, simple_computation_node, complex_citation_node) -> None: @@ -32,6 +30,7 @@ def test_create_complex_computation_node(simple_data_node, complex_software_conf test that a complex computation node with all possible arguments can be created """ my_computation_type = "analysis" + my_computation_notes = "this is my computation notes" citation = copy.deepcopy(complex_citation_node) condition = copy.deepcopy(complex_condition_node) @@ -44,6 +43,7 @@ def test_create_complex_computation_node(simple_data_node, complex_software_conf condition=[condition], prerequisite_computation=simple_computation_node, citation=[citation], + notes=my_computation_notes, ) # assertions @@ -55,6 +55,7 @@ def test_create_complex_computation_node(simple_data_node, complex_software_conf assert my_computation_node.condition == [condition] assert my_computation_node.prerequisite_computation == simple_computation_node assert my_computation_node.citation == [citation] + assert my_computation_node.notes == my_computation_notes def test_computation_type_invalid_vocabulary() -> None: diff --git a/tests/nodes/primary_nodes/test_material.py b/tests/nodes/primary_nodes/test_material.py index 19ad5b0bf..e37aba38c 100644 --- a/tests/nodes/primary_nodes/test_material.py +++ b/tests/nodes/primary_nodes/test_material.py @@ -24,7 +24,7 @@ def test_create_complex_material(simple_material_node, simple_computational_forc my_property = [cript.Property(key="modulus_shear", type="min", value=1.23, unit="gram")] - my_material = cript.Material(name=material_name, identifier=identifier, keyword=keyword, component=component, process=simple_process_node, property=my_property, computational_forcefield=forcefield) + my_material = cript.Material(name=material_name, identifier=identifier, keyword=keyword, component=component, process=simple_process_node, property=my_property, computational_forcefield=forcefield, notes=material_notes) assert isinstance(my_material, cript.Material) assert my_material.name == material_name