File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,7 @@ def config_specification(self) -> ConfigSpecification:
460
460
"""
461
461
if self ._config_specification is None :
462
462
self ._config_specification = ConfigSpecification ()
463
+ if self ._internal_obj is not None :
463
464
num_options = self ._api .operator_specification_get_num_config_options (self )
464
465
for i in range (num_options ):
465
466
option_name = self ._api .operator_specification_get_config_name (self , i )
Original file line number Diff line number Diff line change @@ -1328,6 +1328,16 @@ def test_generated_operator_config_specification_simple(server_type):
1328
1328
assert "id" in conf_spec ["work_by_index" ].document
1329
1329
1330
1330
1331
+ def test_empty_specification (server_type ):
1332
+ op = dpf .core .dpf_operator .Operator ("chunk_fc" , server = server_type )
1333
+ spec = op .specification
1334
+ _ = spec .config_specification
1335
+ _ = spec .properties
1336
+ _ = spec .description
1337
+ _ = spec .inputs
1338
+ _ = spec .outputs
1339
+
1340
+
1331
1341
def test_operator_exception ():
1332
1342
ds = dpf .core .DataSources (r"dummy/file.rst" )
1333
1343
op = ops .result .displacement (data_sources = ds )
You can’t perform that action at this time.
0 commit comments