Skip to content

Commit

Permalink
Try skip problematic doctest lines
Browse files Browse the repository at this point in the history
Signed-off-by: paul.profizi <[email protected]>
  • Loading branch information
PProfizi committed Feb 15, 2024
1 parent dd28e9e commit 9c470ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ansys/dpf/core/server_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ class ServerConfig:
... protocol=dpf.server_factory.CommunicationProtocols.gRPC, legacy=False)
>>> legacy_grpc_config = dpf.ServerConfig(
... protocol=dpf.server_factory.CommunicationProtocols.gRPC, legacy=True)
>>> in_process_server = dpf.start_local_server(config=in_process_config, as_global=False)
>>> grpc_server = dpf.start_local_server(config=grpc_config, as_global=False)
>>> legacy_grpc_server = dpf.start_local_server(config=legacy_grpc_config, as_global=False)
>>> in_process_server = dpf.start_local_server(config=in_process_config, as_global=False) # doctest: +SKIP
>>> grpc_server = dpf.start_local_server(config=grpc_config, as_global=False) # doctest: +SKIP
>>> legacy_grpc_server = dpf.start_local_server(config=legacy_grpc_config, as_global=False) # doctest: +SKIP
Use the environment variable to set the default server configuration.
Expand Down Expand Up @@ -358,6 +358,9 @@ class AvailableServerConfigs:
>>> in_process_config = dpf.AvailableServerConfigs.InProcessServer
>>> grpc_config = dpf.AvailableServerConfigs.GrpcServer
>>> legacy_grpc_config = dpf.AvailableServerConfigs.LegacyGrpcServer
>>> in_process_server = dpf.start_local_server(config=in_process_config, as_global=False) # doctest: +SKIP
>>> grpc_server = dpf.start_local_server(config=grpc_config, as_global=False) # doctest: +SKIP
>>> legacy_grpc_server = dpf.start_local_server(config=legacy_grpc_config, as_global=False) # doctest: +SKIP
"""

Expand Down

0 comments on commit 9c470ab

Please sign in to comment.