From 36fb75abd230e482f5fd865f2da237e18a65b1fe Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 4 Dec 2018 13:56:49 -0800 Subject: [PATCH] Adjust test_drtfr_gpgkey to pass on Fedora 28 and RHEL 8 Depending on which version of dnf is installed it may return a tuple, or may return a list. Work around this by only comparing the 1st element of it. Related: rhbz#1655876 --- tests/pylorax/test_projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pylorax/test_projects.py b/tests/pylorax/test_projects.py index 237ba5c7..1e9f2323 100644 --- a/tests/pylorax/test_projects.py +++ b/tests/pylorax/test_projects.py @@ -395,7 +395,7 @@ class SourceTest(unittest.TestCase): def test_source_to_repo_gpgkey(self): """Test creating a dnf.Repo with a proxy""" repo = source_to_repo(fakerepo_gpgkey(), self.dbo.conf) - self.assertEqual(repo.gpgkey, fakerepo_gpgkey()["gpgkey_urls"]) + self.assertEqual(repo.gpgkey[0], fakerepo_gpgkey()["gpgkey_urls"][0]) def test_drtfr_baseurl(self): """Test creating a dnf .repo file from a baseurl Repo object"""