14 lines
322 B
Python
14 lines
322 B
Python
import pytest
|
|
|
|
from runboat.k8s import _split_image_name_tag
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
("image", "expected"),
|
|
[
|
|
("postgres", ("postgres", "latest")),
|
|
("postgres:12", ("postgres", "12")),
|
|
],
|
|
)
|
|
def test_split_image_name_tag(image, expected):
|
|
assert _split_image_name_tag(image) == expected
|