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.
This commit is contained in:
Brian C. Lane 2018-07-27 15:47:22 -07:00
parent 7700ae3135
commit 26df083bd4

View File

@ -597,7 +597,7 @@ class ServerTestCase(unittest.TestCase):
resp = self.server.get("/api/v0/projects/source/list")
data = json.loads(resp.data)
self.assertNotEqual(data, None)
self.assertTrue(self.system_repo in data["sources"])
self.assertTrue(self.system_repo in data["sources"], "%s not in %s" % (self.system_repo, data["sources"]))
def test_projects_source_02_delete_single(self):
"""Test /api/v0/projects/source/delete a single source"""