Show more details when the system repo delete test fails
Works fine for me locally, but not in Travis for some reason so let's
get more info.
(cherry picked from commit 26df083bd4
)
This commit is contained in:
parent
7869c59847
commit
51c17ae361
@ -603,10 +603,7 @@ class ServerTestCase(unittest.TestCase):
|
|||||||
resp = self.server.get("/api/v0/projects/source/list")
|
resp = self.server.get("/api/v0/projects/source/list")
|
||||||
data = json.loads(resp.data)
|
data = json.loads(resp.data)
|
||||||
self.assertNotEqual(data, None)
|
self.assertNotEqual(data, None)
|
||||||
if self.rawhide:
|
self.assertTrue(self.system_repo in data["sources"], "%s not in %s" % (self.system_repo, data["sources"]))
|
||||||
self.assertTrue("rawhide" in data["sources"])
|
|
||||||
else:
|
|
||||||
self.assertTrue("fedora" in data["sources"])
|
|
||||||
|
|
||||||
def test_projects_source_02_delete_single(self):
|
def test_projects_source_02_delete_single(self):
|
||||||
"""Test /api/v0/projects/source/delete a single source"""
|
"""Test /api/v0/projects/source/delete a single source"""
|
||||||
|
Loading…
Reference in New Issue
Block a user