diff --git a/tests/test_pagure_flask_ui_no_master_branch.py b/tests/test_pagure_flask_ui_no_master_branch.py index ee7d194..bbbc943 100644 --- a/tests/test_pagure_flask_ui_no_master_branch.py +++ b/tests/test_pagure_flask_ui_no_master_branch.py @@ -186,7 +186,7 @@ class PagureFlaskNoMasterBranchtests(tests.Modeltests): output = self.app.get('/test/commits') self.assertEqual(output.status_code, 200) self.assertIn( - '
\n
', output.data) + '
\n
', output.data) self.assertNotIn( '
', output.data) @@ -198,7 +198,7 @@ class PagureFlaskNoMasterBranchtests(tests.Modeltests): self.assertIn('Add sources file for testing', output.data) self.assertIn('Add .gitignore file for testing', output.data) self.assertNotIn( - '
\n
', output.data) + '
\n
', output.data) self.assertEqual( output.data.count('class="list-group-item p-l-3"'), 2) diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index 9dd8154..f5e2f59 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -500,6 +500,7 @@ class PagureFlaskRepotests(tests.Modeltests): self.assertEqual(output.status_code, 404) tests.create_projects(self.session) + tests.create_projects_git(tests.HERE, bare=True) output = self.app.get('/test/forks') self.assertEqual(output.status_code, 200) diff --git a/tests/test_pagure_flask_ui_slash_branch_name.py b/tests/test_pagure_flask_ui_slash_branch_name.py index d01050e..db80da6 100644 --- a/tests/test_pagure_flask_ui_slash_branch_name.py +++ b/tests/test_pagure_flask_ui_slash_branch_name.py @@ -193,7 +193,10 @@ class PagureFlaskSlashInBranchtests(tests.Modeltests): self.assertIn('Logs - test - Pagure', output.data) self.assertIn('Add sources file for testing', output.data) self.assertIn('Add .gitignore file for testing', output.data) - self.assertEqual(output.data.count('2 commits in', + output.data) @patch('pagure.lib.notify.send_email') def test_view_file(self, send_email):