File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ def geode_objects_dict():
439439 "output_factory" : og .SectionOutputFactory ,
440440 "additional_files" : og .section_additional_files ,
441441 "is_loadable" : og .is_section_loadable ,
442- "object_prioriity " : og .section_object_priority ,
442+ "object_priority " : og .section_object_priority ,
443443 "load" : og .load_section ,
444444 "is_saveable" : og .is_section_saveable ,
445445 "save" : og .save_section ,
Original file line number Diff line number Diff line change @@ -66,6 +66,13 @@ def test_is_loadable():
6666 assert isinstance (is_loadable , float )
6767 assert 0.0 <= is_loadable <= 1.0
6868
69+ def test_object_priority ():
70+ for geode_object , _value in geode_objects .geode_objects_dict ().items ():
71+ input_extensions = geode_functions .geode_object_input_extensions (geode_object )
72+ for input_extension in input_extensions :
73+ file_absolute_path = os .path .join (data_folder , f"test.{ input_extension } " )
74+ priority = geode_functions .object_priority (geode_object , file_absolute_path )
75+ assert isinstance (priority , int ), f"Priority should be int for { geode_object } "
6976
7077def test_load ():
7178 for geode_object , value in geode_objects .geode_objects_dict ().items ():
You can’t perform that action at this time.
0 commit comments