diff --git a/tests/unit/test_sources.py b/tests/unit/test_sources.py index 0e01af7..98e16a1 100644 --- a/tests/unit/test_sources.py +++ b/tests/unit/test_sources.py @@ -33,7 +33,7 @@ def test_tag_source_get_number(tag_name, number): ], ) def test_sources_get_tag_format(ref_name, ref_separator, number, name, separator): - sources = Sources(None, []) + sources = Sources(Tags(), []) reference = TagSource(Tag(ref_name, "", "", ref_separator, Comments())) assert sources._get_tag_format(reference, number) == (name, separator) @@ -265,7 +265,7 @@ def test_sources_insert_numbered(tags, number, location, index): ], ) def test_patches_get_tag_format(ref_name, ref_separator, number, name, separator): - patches = Patches(None, []) + patches = Patches(Tags(), []) reference = TagSource(Tag(ref_name, "", "", ref_separator, Comments())) assert patches._get_tag_format(reference, number) == (name, separator) diff --git a/tests/unit/test_tags.py b/tests/unit/test_tags.py index 0816689..ad61b0f 100644 --- a/tests/unit/test_tags.py +++ b/tests/unit/test_tags.py @@ -12,9 +12,9 @@ def test_find(): tags = Tags( [ - Tag("Name", "test", "test", ": ", []), - Tag("Version", "0.1", "0.1", ": ", []), - Tag("Release", "1%{?dist}", "1.fc35", ": ", []), + Tag("Name", "test", "test", ": ", Comments()), + Tag("Version", "0.1", "0.1", ": ", Comments()), + Tag("Release", "1%{?dist}", "1.fc35", ": ", Comments()), ] ) assert tags.find("version") == 1 @@ -122,7 +122,7 @@ def test_get_raw_section_data(): def test_copy_tags(): tags = Tags( [ - Tag("Name", "test", "test", ": ", []), + Tag("Name", "test", "test", ": ", Comments()), ] ) tags_copy = copy.deepcopy(tags)