Skip to content

Commit

Permalink
dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellot000 committed Jul 25, 2022
1 parent 97ac943 commit 1dc9424
Showing 1 changed file with 40 additions and 35 deletions.
75 changes: 40 additions & 35 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
':/tmp/test_files"'
)


@pytest.hookimpl()
def pytest_sessionfinish(session, exitstatus):
if os.name == 'posix':
if os.name == "posix":
# accept ACCEPTABLE_FAILURE_RATE percent of failure on Linux
if exitstatus != pytest.ExitCode.TESTS_FAILED:
return
Expand Down Expand Up @@ -254,36 +255,36 @@ def server_type_remote_process(request):
core.settings.get_runtime_client_config(server).cache_enabled = True
return server

@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
legacy=True),
ServerConfig(protocol=CommunicationProtocols.gRPC,
legacy=False),
ServerConfig(protocol=CommunicationProtocols.InProcess,
legacy=False)],
ids=[
"ansys-grpc-dpf config",
"gRPC CLayer config",
"in Process CLayer config"
])
@pytest.fixture(
scope="session",
params=[
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True),
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=False),
ServerConfig(protocol=CommunicationProtocols.InProcess, legacy=False),
],
ids=["ansys-grpc-dpf config", "gRPC CLayer config", "in Process CLayer config"],
)
def config_server_type(request):
return request.param

@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
legacy=True),
ServerConfig(protocol=CommunicationProtocols.gRPC,
legacy=False)],
ids=[
"ansys-grpc-dpf config",
"gRPC CLayer config"
])
@pytest.fixture(
scope="session",
params=[
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True),
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=False),
],
ids=["ansys-grpc-dpf config", "gRPC CLayer config"],
)
def remote_config_server_type(request):
return request.param

@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
legacy=True)],
ids=[
"ansys-grpc-dpf",
])
@pytest.fixture(
scope="session",
params=[ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True)],
ids=[
"ansys-grpc-dpf",
],
)
def server_type_legacy_grpc(request):
return core.start_local_server(config=request.param, as_global=False)

Expand All @@ -303,19 +304,23 @@ def server_type():
def server_type_remote_process(request):
return core._global_server()

@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
legacy=True)],
ids=[
"ansys-grpc-dpf",
])
@pytest.fixture(
scope="session",
params=[ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True)],
ids=[
"ansys-grpc-dpf",
],
)
def config_server_type(request):
return request.param

@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
legacy=True)],
ids=[
"ansys-grpc-dpf",
])
@pytest.fixture(
scope="session",
params=[ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True)],
ids=[
"ansys-grpc-dpf",
],
)
def remote_config_server_type(request):
return request.param

Expand Down

0 comments on commit 1dc9424

Please sign in to comment.