This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/util/test/test_names.py
2018-07-18 11:10:44 -04:00

14 lines
360 B
Python

import pytest
from util.names import escape_tag
@pytest.mark.parametrize('input_tag, expected', [
('latest', 'latest'),
('latest124', 'latest124'),
('5de1e98d', '5de1e98d'),
('detailed_view#61', 'detailed_view_61'),
('-detailed_view#61', '_detailed_view_61')
])
def test_escape_tag(input_tag, expected):
assert escape_tag(input_tag) == expected