mirror of
https://gitlab.com/itsulu-odoo/runboat.git
synced 2026-05-30 23:41:27 +00:00
14 lines
352 B
Python
14 lines
352 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: str, expected: tuple[str, str]) -> None:
|
|
assert _split_image_name_tag(image) == expected
|