Skip to content

Commit

Permalink
Its append which need to work
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Jan 27, 2025
1 parent 4da4a5b commit 20964d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ class TestAddOsProductTags(fixture.SubManFixture):
return_value=("", "12", "", "", "debian", []),
)
def test_add_os_product_tags_empty(self, mock_get_distribution):
product_tags = []
product_tags = set()
all_tags = model.add_os_product_tags(product_tags)
self.assertEqual(len(all_tags), 1)
self.assertEqual(all_tags[0], "debian-12")
self.assert("debian-12" in all_tags)

@patch(
"rhsmlib.facts.hwprobe.HardwareCollector.get_distribution",
Expand All @@ -100,8 +100,8 @@ def test_add_os_product_tags_with_product_tags(self, mock_get_distribution):
product_tags = ["awesomeproduct-1"]
all_tags = model.add_os_product_tags(product_tags)
self.assertEqual(len(all_tags), 2)
self.assertEqual(all_tags[0], "awesomeproduct-1")
self.assertEqual(all_tags[1], "debian-12")
self.assert("debian-12" in all_tags)
self.assert("awesomeproduct-1" in all_tags)


class TestContentTagMatch(fixture.SubManFixture):
Expand Down

0 comments on commit 20964d5

Please sign in to comment.