diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index fda50dd..9b29c91 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -1426,6 +1426,13 @@ class PagureFlaskRepotests(tests.Modeltests): '' in output.data) + #View the commit when branch name is wrong, show the commit + 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 item = pagure.lib.model.Project( user_id=1, # pingou @@ -1477,6 +1484,13 @@ class PagureFlaskRepotests(tests.Modeltests): '' in output.data) + #View the commit of the fork when branch name is wrong + 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) + def test_view_commit_patch(self): """ Test the view_commit_patch endpoint. """