Skip to content

Commit

Permalink
Fix tests related to changing default gpu_device_plugin_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Dec 2, 2024
1 parent 7c20206 commit b9378bf
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/test_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ def test_init_default_values(self):
ray_cluster_yaml="cluster.yaml",
)
assert operator.kuberay_version == "1.0.0"
assert (
operator.gpu_device_plugin_yaml
== "https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.9.0/nvidia-device-plugin.yml"
)
assert not operator.gpu_device_plugin_yaml
assert operator.update_if_exists is False

@patch("ray_provider.operators.RayHook")
Expand Down Expand Up @@ -87,10 +84,7 @@ def test_init_default_gpu_plugin(self):
conn_id="test_conn",
ray_cluster_yaml="cluster.yaml",
)
assert (
operator.gpu_device_plugin_yaml
== "https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/v0.9.0/nvidia-device-plugin.yml"
)
assert not operator.gpu_device_plugin_yaml

@patch("ray_provider.operators.RayHook")
def test_hook_property(self, mock_ray_hook):
Expand Down

0 comments on commit b9378bf

Please sign in to comment.