Add the filter test for architectures tags.

This commit is contained in:
2023-06-19 09:48:34 +03:00
parent e608a98743
commit 75358b59dd
3 changed files with 27 additions and 0 deletions
View File
+14
View File
@@ -0,0 +1,14 @@
import pytest
@pytest.fixture
def tags_architectures():
def get_architectures_tags():
tags = [
"8.0.33-25.1",
"8.0.33-25.1-aarch64",
"8.0.33-25.1-multi"
]
return tags
return get_architectures_tags
+13
View File
@@ -0,0 +1,13 @@
import pytest
from docker_tags_getter.filters.tags_filter import TagsFilter
def test_filter_architectures(tags_architectures):
tags = tags_architectures()
tags_filter = TagsFilter()
assert 3 == len(tags)
tags = tags_filter.filter_list(tags)
assert 1 == len(tags)