From 8e8c5a2fffb08f092e660188ae889367a5523ddd Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Jun 07 2016 15:05:57 +0000 Subject: modify test for unit test when branch name is wrong: go to commits page in general instead of default branch commits page --- diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index 9b29c91..62f0462 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -1430,7 +1430,7 @@ class PagureFlaskRepotests(tests.Modeltests): output = self.app.get('/test/c/%s?branch=abcxyz' % commit.oid.hex) self.assertEqual(output.status_code, 200) self.assertTrue( - '' + '' in output.data) # Add a fork of a fork @@ -1488,7 +1488,7 @@ class PagureFlaskRepotests(tests.Modeltests): output = self.app.get('/fork/pingou/test3/c/%s?branch=abcxyz' % commit.oid.hex) self.assertEqual(output.status_code, 200) self.assertTrue( - '' + '' in output.data)