Skip to content

Commit f6858cd

Browse files
committed
format
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent d5038b6 commit f6858cd

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

test/run/ray/test_kuberay.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,9 +2102,7 @@ def test_kuberay_cluster_fallback_to_incluster(self):
21022102
with patch(
21032103
"nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error
21042104
) as mock_load_kube:
2105-
with patch(
2106-
"nemo_run.run.ray.kuberay.config.load_incluster_config"
2107-
) as mock_incluster:
2105+
with patch("nemo_run.run.ray.kuberay.config.load_incluster_config") as mock_incluster:
21082106
with patch("nemo_run.run.ray.kuberay.client.CustomObjectsApi"):
21092107
with patch("nemo_run.run.ray.kuberay.client.CoreV1Api"):
21102108
with patch("nemo_run.run.ray.kuberay.get_user", return_value="testuser"):
@@ -2121,9 +2119,7 @@ def test_kuberay_cluster_both_configs_fail(self):
21212119
kube_error = Exception("Kube config file not found")
21222120
incluster_error = Exception("Not running inside a cluster")
21232121

2124-
with patch(
2125-
"nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error
2126-
):
2122+
with patch("nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error):
21272123
with patch(
21282124
"nemo_run.run.ray.kuberay.config.load_incluster_config",
21292125
side_effect=incluster_error,
@@ -2160,9 +2156,7 @@ def test_kuberay_job_fallback_to_incluster(self):
21602156
with patch(
21612157
"nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error
21622158
) as mock_load_kube:
2163-
with patch(
2164-
"nemo_run.run.ray.kuberay.config.load_incluster_config"
2165-
) as mock_incluster:
2159+
with patch("nemo_run.run.ray.kuberay.config.load_incluster_config") as mock_incluster:
21662160
with patch("nemo_run.run.ray.kuberay.client.CustomObjectsApi"):
21672161
with patch("nemo_run.run.ray.kuberay.client.CoreV1Api"):
21682162
with patch("nemo_run.run.ray.kuberay.get_user", return_value="testuser"):
@@ -2179,9 +2173,7 @@ def test_kuberay_job_both_configs_fail(self):
21792173
kube_error = Exception("Kube config file not found")
21802174
incluster_error = Exception("Not running inside a cluster")
21812175

2182-
with patch(
2183-
"nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error
2184-
):
2176+
with patch("nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error):
21852177
with patch(
21862178
"nemo_run.run.ray.kuberay.config.load_incluster_config",
21872179
side_effect=incluster_error,
@@ -2200,9 +2192,7 @@ def test_error_chaining_preserved(self):
22002192
kube_error = Exception("Kube config file not found")
22012193
incluster_error = Exception("Not running inside a cluster")
22022194

2203-
with patch(
2204-
"nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error
2205-
):
2195+
with patch("nemo_run.run.ray.kuberay.config.load_kube_config", side_effect=kube_error):
22062196
with patch(
22072197
"nemo_run.run.ray.kuberay.config.load_incluster_config",
22082198
side_effect=incluster_error,

0 commit comments

Comments
 (0)