Skip to content

Commit 1dc9424

Browse files
committed
dummy
1 parent 97ac943 commit 1dc9424

File tree

1 file changed

+40
-35
lines changed

1 file changed

+40
-35
lines changed

tests/conftest.py

+40-35
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
':/tmp/test_files"'
4040
)
4141

42+
4243
@pytest.hookimpl()
4344
def pytest_sessionfinish(session, exitstatus):
44-
if os.name == 'posix':
45+
if os.name == "posix":
4546
# accept ACCEPTABLE_FAILURE_RATE percent of failure on Linux
4647
if exitstatus != pytest.ExitCode.TESTS_FAILED:
4748
return
@@ -254,36 +255,36 @@ def server_type_remote_process(request):
254255
core.settings.get_runtime_client_config(server).cache_enabled = True
255256
return server
256257

257-
@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
258-
legacy=True),
259-
ServerConfig(protocol=CommunicationProtocols.gRPC,
260-
legacy=False),
261-
ServerConfig(protocol=CommunicationProtocols.InProcess,
262-
legacy=False)],
263-
ids=[
264-
"ansys-grpc-dpf config",
265-
"gRPC CLayer config",
266-
"in Process CLayer config"
267-
])
258+
@pytest.fixture(
259+
scope="session",
260+
params=[
261+
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True),
262+
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=False),
263+
ServerConfig(protocol=CommunicationProtocols.InProcess, legacy=False),
264+
],
265+
ids=["ansys-grpc-dpf config", "gRPC CLayer config", "in Process CLayer config"],
266+
)
268267
def config_server_type(request):
269268
return request.param
270269

271-
@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
272-
legacy=True),
273-
ServerConfig(protocol=CommunicationProtocols.gRPC,
274-
legacy=False)],
275-
ids=[
276-
"ansys-grpc-dpf config",
277-
"gRPC CLayer config"
278-
])
270+
@pytest.fixture(
271+
scope="session",
272+
params=[
273+
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True),
274+
ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=False),
275+
],
276+
ids=["ansys-grpc-dpf config", "gRPC CLayer config"],
277+
)
279278
def remote_config_server_type(request):
280279
return request.param
281280

282-
@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
283-
legacy=True)],
284-
ids=[
285-
"ansys-grpc-dpf",
286-
])
281+
@pytest.fixture(
282+
scope="session",
283+
params=[ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True)],
284+
ids=[
285+
"ansys-grpc-dpf",
286+
],
287+
)
287288
def server_type_legacy_grpc(request):
288289
return core.start_local_server(config=request.param, as_global=False)
289290

@@ -303,19 +304,23 @@ def server_type():
303304
def server_type_remote_process(request):
304305
return core._global_server()
305306

306-
@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
307-
legacy=True)],
308-
ids=[
309-
"ansys-grpc-dpf",
310-
])
307+
@pytest.fixture(
308+
scope="session",
309+
params=[ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True)],
310+
ids=[
311+
"ansys-grpc-dpf",
312+
],
313+
)
311314
def config_server_type(request):
312315
return request.param
313316

314-
@pytest.fixture(scope="session", params=[ServerConfig(protocol=CommunicationProtocols.gRPC,
315-
legacy=True)],
316-
ids=[
317-
"ansys-grpc-dpf",
318-
])
317+
@pytest.fixture(
318+
scope="session",
319+
params=[ServerConfig(protocol=CommunicationProtocols.gRPC, legacy=True)],
320+
ids=[
321+
"ansys-grpc-dpf",
322+
],
323+
)
319324
def remote_config_server_type(request):
320325
return request.param
321326

0 commit comments

Comments
 (0)