parent
e608a98743
commit
75358b59dd
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in new issue