diff --git a/src/ansys/dpf/core/server_factory.py b/src/ansys/dpf/core/server_factory.py index 3c84c59c88..459cf404a2 100644 --- a/src/ansys/dpf/core/server_factory.py +++ b/src/ansys/dpf/core/server_factory.py @@ -235,15 +235,15 @@ 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. >>> import os >>> os.environ["DPF_SERVER_TYPE"] = "INPROCESS" - >>> dpf.start_local_server() + >>> dpf.start_local_server() # doctest: +SKIP """ @@ -358,9 +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) - >>> 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 """