Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-vk committed Nov 30, 2022
1 parent c31a54d commit 5b72284
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,16 @@ def test_util_ImageName_to_str(self, image_string, dictionary):
def test_image_name_comparison(self, image_string, dictionary):
# make sure that both "==" and "!=" are implemented right on both Python major releases
i1 = ImageName.parse(image_string)
i2 = ImageName(registry=dictionary["registry"], namespace=dictionary["namespace"], repo=dictionary["repo"], tag=dictionary["tag"])
i2 = ImageName(registry=dictionary["registry"], namespace=dictionary["namespace"], repo=dictionary["repo"],
tag=dictionary["tag"])
assert i1 == i2
assert not i1 != i2

i2 = ImageName(registry='foo.com', namespace='spam', repo='bar', tag='2')
assert not i1 == i2
assert i1 != i2


@pytest.mark.parametrize(('repo', 'organization', 'enclosed_repo'), (
('fedora', 'spam', 'spam/fedora'),
('spam/fedora', 'spam', 'spam/fedora'),
Expand Down Expand Up @@ -109,6 +111,7 @@ def test_image_name_enclose(repo, organization, enclosed_repo, registry, tag):
assert image_name.registry == registry
assert image_name.tag == tag


class TestDockerfileParser(object):
def test_all_versions_match(self):
def read_version(fp, regex):
Expand Down

0 comments on commit 5b72284

Please sign in to comment.