Skip to content

Commit c91f913

Browse files
authored
Remove unused fixture and update tox to include fixtures that are not easy to find (#522)
1 parent 7ca1e07 commit c91f913

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

tests/conftest.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -416,18 +416,6 @@ def dsc_resource(admin_client: DynamicClient) -> DataScienceCluster:
416416
return DataScienceCluster(client=admin_client, name=py_config["dsc_name"], ensure_exists=True)
417417

418418

419-
@pytest.fixture(scope="module")
420-
def updated_dsc_component_state(
421-
request: FixtureRequest,
422-
dsc_resource: DataScienceCluster,
423-
) -> Generator[DataScienceCluster, Any, Any]:
424-
with update_components_in_dsc(
425-
dsc=dsc_resource,
426-
components={request.param["component_name"]: request.param["desired_state"]},
427-
) as dsc:
428-
yield dsc
429-
430-
431419
@pytest.fixture(scope="package")
432420
def enabled_modelmesh_in_dsc(
433421
dsc_resource: DataScienceCluster,

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ setenv =
1111
deps =
1212
python-utility-scripts
1313
commands =
14-
pyutils-unusedcode --exclude-function-prefixes "pytest_" --exclude-files "generation_pb2_grpc.py"
14+
pyutils-unusedcode --exclude-function-prefixes "pytest_,fail_if_missing_dependent_operators,enabled_kserve_in_dsc,enabled_modelmesh_in_dsc,http_s3_ovms_external_route_model_mesh_serving_runtime" --exclude-files "generation_pb2_grpc.py"
1515

1616
[testenv:pytest]
1717
deps =

0 commit comments

Comments
 (0)