@@ -158,7 +158,7 @@ def expected_workflow_topology(workflow):
158158
159159@pytest .mark .skipif (
160160 not conftest .SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0 ,
161- reason = "any does not support operator below 8 .0" ,
161+ reason = "Operator `workflow_to_workflow_topology` does not exist below 10 .0" ,
162162)
163163def test_instantiate_workflow_to_workflow_topology_op (server_type ):
164164 workflow_to_workflow_topology_op = dpf .core .Operator (
@@ -170,7 +170,7 @@ def test_instantiate_workflow_to_workflow_topology_op(server_type):
170170
171171@pytest .mark .skipif (
172172 not conftest .SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0 ,
173- reason = "any does not support operator below 8 .0" ,
173+ reason = "Operator `workflow_to_workflow_topology` does not exist below 10 .0" ,
174174)
175175def test_workflow_get_topology (workflow ):
176176 workflow_topology = workflow .get_topology ()
@@ -180,7 +180,7 @@ def test_workflow_get_topology(workflow):
180180
181181@pytest .mark .skipif (
182182 not conftest .SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0 ,
183- reason = "any does not support operator below 8 .0" ,
183+ reason = "Operator `workflow_to_workflow_topology` does not exist below 10 .0" ,
184184)
185185def test_workflow_topology_sizes (workflow , expected_workflow_topology ):
186186 workflow_topology = workflow .get_topology ()
@@ -193,3 +193,14 @@ def test_workflow_topology_sizes(workflow, expected_workflow_topology):
193193 assert len (workflow_topology .data_connections ) == expected_workflow_topology ["data_connections" ]
194194 assert len (workflow_topology .exposed_inputs ) == expected_workflow_topology ["exposed_inputs" ]
195195 assert len (workflow_topology .exposed_outputs ) == expected_workflow_topology ["exposed_outputs" ]
196+
197+
198+ @pytest .mark .skipif (
199+ not conftest .SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0 ,
200+ reason = "Operator `workflow_to_workflow_topology` does not exist below 10.0" ,
201+ )
202+ def test_workflow_topology_str (workflow ):
203+ workflow_topology = workflow .get_topology ()
204+
205+ # We only check that it does not raise
206+ assert str (workflow_topology )
0 commit comments