Skip to content

Commit 6e69009

Browse files
committed
fix test
Signed-off-by: sirutBuasai <sirutbuasai27@outlook.com>
1 parent c3c9aed commit 6e69009

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/docs/test_image_config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ImageConfig,
2121
build_image_row,
2222
check_public_registry,
23-
get_latest_image,
23+
get_latest_image_uri,
2424
load_legacy_images,
2525
load_repository_images,
2626
sort_by_version,
@@ -278,12 +278,12 @@ def test_mixed(self, caplog):
278278

279279
class TestGetLatestImage:
280280
def test_success(self, mock_paths):
281-
LOGGER.debug("Testing get_latest_image for valid repo/platform")
282-
uri = get_latest_image("mock-repo", "ec2")
281+
LOGGER.debug("Testing get_latest_image_uri for valid repo/platform")
282+
uri = get_latest_image_uri("mock-repo", "ec2")
283283
LOGGER.debug(f"Latest image URI: {uri}")
284284
assert "mock-repo" in uri
285285
assert "2.0.0-gpu-py312" in uri
286-
LOGGER.info("get_latest_image test passed")
286+
LOGGER.info("get_latest_image_uri test passed")
287287

288288
@pytest.mark.parametrize(
289289
"repo,platform",
@@ -292,4 +292,4 @@ def test_success(self, mock_paths):
292292
)
293293
def test_not_found(self, mock_paths, repo, platform):
294294
with pytest.raises(ValueError, match="Image not found"):
295-
get_latest_image(repo, platform)
295+
get_latest_image_uri(repo, platform)

0 commit comments

Comments
 (0)