diff --git a/unittests/test_yaml_model_parser.py b/unittests/test_yaml_model_parser.py index e645dcd6d4c37c97758a7d6eaaba30e6c8bc7a12..e3e9a0afed97511ce6a2edd33e78b4d225abdd33 100644 --- a/unittests/test_yaml_model_parser.py +++ b/unittests/test_yaml_model_parser.py @@ -674,14 +674,6 @@ test_reference: # comparison with a version taken from a LinkAhead instance will have these attributes. # Furthermore, RT2 will be set as the datatype **in object version** in the yaml definition, while # it is an ID in case of the version from the LinkAhead instance. - # p_foo = db.Property(name="foo", datatype="INTEGER", description="bla bla", unit="m") - # rt2 = db.RecordType(name="RT2") - # rt1 = db.RecordType(name="RT1") - # rt1.add_property(p_foo) - # rt1.add_property(rt2) - - # existing_entities = [ - # p_foo, rt2, rt1] server_response = """ <Entities> @@ -738,13 +730,11 @@ test_reference: caosadvancedtools.models.parser.db.Container.insert = Mock() model.sync_data_model(True, True) - assert caosadvancedtools.models.parser.db.Container.update.called + assert not caosadvancedtools.models.parser.db.Container.update.called assert not caosadvancedtools.models.parser.db.Container.insert.called output, err = capfd.readouterr() - print(output) - assert False - - # TODO: test that there were no changes required + assert "No new entities." in output + assert "No differences found. No update" in output def test_sync_output(capfd):