@@ -816,6 +816,24 @@ def listify_template(data_dict: Template):
816816 ],
817817 id = "field-instead-of-named-group" ,
818818 ),
819+ pytest .param (
820+ alter_dict (
821+ alter_dict (
822+ TEMPLATE ,
823+ "/ENTRY[my_entry]/identified_calibration" ,
824+ {"link" : "/my_entry/some_group" },
825+ ),
826+ "/ENTRY[my_entry]/NXODD_name[nxodd_name]/float_value" ,
827+ {"link" : "/my_entry/specified_group/some_field" },
828+ ),
829+ [
830+ "Broken link at /ENTRY[my_entry]/identified_calibration to /my_entry/some_group." ,
831+ "The key /ENTRY[my_entry]/identified_calibration will not be written." ,
832+ "Broken link at /ENTRY[my_entry]/NXODD_name[nxodd_name]/float_value to /my_entry/specified_group/some_field." ,
833+ "The key /ENTRY[my_entry]/NXODD_name[nxodd_name]/float_value will not be written." ,
834+ ],
835+ id = "appdef-broken-links" ,
836+ ),
819837 pytest .param (
820838 alter_dict (
821839 alter_dict (
@@ -850,6 +868,24 @@ def listify_template(data_dict: Template):
850868 ],
851869 id = "appdef-links-with-wrong-nexus-types" ,
852870 ),
871+ pytest .param (
872+ alter_dict (
873+ alter_dict (
874+ TEMPLATE ,
875+ "/ENTRY[my_entry]/SAMPLE[my_sample]" ,
876+ {"link" : "/my_entry/some_group" },
877+ ),
878+ "/ENTRY[my_entry]/SAMPLE[my_sample2]/name" ,
879+ {"link" : "/my_entry/specified_group/some_field223" },
880+ ),
881+ [
882+ "Broken link at /ENTRY[my_entry]/SAMPLE[my_sample] to /my_entry/some_group." ,
883+ "The key /ENTRY[my_entry]/SAMPLE[my_sample] will not be written." ,
884+ "Broken link at /ENTRY[my_entry]/SAMPLE[my_sample2]/name to /my_entry/specified_group/some_field223." ,
885+ "The key /ENTRY[my_entry]/SAMPLE[my_sample2]/name will not be written." ,
886+ ],
887+ id = "baseclass-broken-links" ,
888+ ),
853889 pytest .param (
854890 alter_dict (
855891 alter_dict (
0 commit comments