runboat/tests/test_k8s.py
Stéphane Bidoul 858c58e47d
Some typing
2021-11-13 18:05:55 +01:00

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