diff --git a/tests/test_progit_flask_ui_repo.py b/tests/test_progit_flask_ui_repo.py index b34cb7b..d31b1c8 100644 --- a/tests/test_progit_flask_ui_repo.py +++ b/tests/test_progit_flask_ui_repo.py @@ -583,6 +583,14 @@ class PagureFlaskRepotests(tests.Modeltests): self.assertEqual( output.data.count(''), 3) + output = self.app.get('/test/commits/master') + self.assertEqual(output.status_code, 200) + self.assertFalse('

This repo is brand new!

' in output.data) + self.assertFalse('Forked from' in output.data) + self.assertTrue('

test project #1

' in output.data) + self.assertEqual( + output.data.count(''), 3) + # Turn that repo into a fork repo = pagure.lib.get_project(self.session, 'test') repo.parent_id = 2