Skip to content

Commit e6024b7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 961b7f8 commit e6024b7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/workbenches/notebook-controller/test_custom_images.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ def install_packages_in_pod(
193193
_ERR_INVALID_TIMEOUT_INSTALL = "timeout must be positive"
194194
_ERR_POD_NOT_EXISTS_INSTALL = "Pod {pod_name} does not exist"
195195
_ERR_POD_NOT_RUNNING_INSTALL = "Pod {pod_name} is not in Running state (current: {phase})"
196-
_ERR_CONTAINER_NOT_FOUND_INSTALL = "Container '{container_name}' not found in pod. Available containers: {containers}"
196+
_ERR_CONTAINER_NOT_FOUND_INSTALL = (
197+
"Container '{container_name}' not found in pod. Available containers: {containers}"
198+
)
197199

198200
# Input validation
199201
if not pod or not isinstance(packages, list) or not packages:
@@ -213,7 +215,9 @@ def install_packages_in_pod(
213215
# Verify container exists
214216
container_names = [c.name for c in pod.instance.spec.containers]
215217
if container_name not in container_names:
216-
raise RuntimeError(_ERR_CONTAINER_NOT_FOUND_INSTALL.format(container_name=container_name, containers=container_names))
218+
raise RuntimeError(
219+
_ERR_CONTAINER_NOT_FOUND_INSTALL.format(container_name=container_name, containers=container_names)
220+
)
217221

218222
LOGGER.info(f"Installing {len(packages)} packages in container '{container_name}' of pod '{pod.name}'")
219223

0 commit comments

Comments
 (0)