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

15 lines
360 B
Python
Raw Normal View History

2018-07-18 15:10:44 +00:00
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