diff --git a/tests/test_pagure_flask_ui_fork.py b/tests/test_pagure_flask_ui_fork.py index b87c373..fd98bda 100644 --- a/tests/test_pagure_flask_ui_fork.py +++ b/tests/test_pagure_flask_ui_fork.py @@ -1379,16 +1379,16 @@ index 0000000..2a552bb output = self.app.get('/test/diff/feature..master') self.assertEqual(output.status_code, 200) self.assertIn( - 'Diff from master to feature - test - Pagure', - output.data) + 'Diff from master to feature - test\n - ' + 'Pagure', output.data) self.assertIn( '

No commits found

', output.data) output = self.app.get('/test/diff/master..feature') self.assertEqual(output.status_code, 200) self.assertIn( - 'Diff from feature to master - test - Pagure', - output.data) + 'Diff from feature to master - test\n - ' + 'Pagure', output.data) self.assertNotIn( '', output.data) @@ -1398,7 +1398,7 @@ index 0000000..2a552bb output = self.app.get('/test/diff/master..feature') self.assertEqual(output.status_code, 200) self.assertIn( - ' Create new Pull Request for master - test - ' + '<title>Create new Pull Request for master - test\n - ' 'Pagure', output.data) self.assertIn( '', diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index 87be925..7beab23 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -1196,7 +1196,7 @@ class PagureFlaskRepotests(tests.Modeltests): output = self.app.get('/test/c/%s..%s' % (c2.oid.hex, c1.oid.hex)) self.assertEqual(output.status_code, 200) self.assertIn( - 'Diff from %s to %s - test - Pagure' + 'Diff from %s to %s - test\n - Pagure' % (c2.oid.hex, c1.oid.hex), output.data) self.assertIn( @@ -1219,7 +1219,7 @@ class PagureFlaskRepotests(tests.Modeltests): output = self.app.get('/test/c/%s..%s' % (c1.oid.hex, c2.oid.hex)) self.assertEqual(output.status_code, 200) self.assertIn( - 'Diff from %s to %s - test - Pagure' % + 'Diff from %s to %s - test\n - Pagure' % (c1.oid.hex, c2.oid.hex), output.data) self.assertIn( @@ -1245,7 +1245,7 @@ class PagureFlaskRepotests(tests.Modeltests): output = self.app.get('/test/c/%s..%s' % (c1.oid.hex, c3.oid.hex)) self.assertEqual(output.status_code, 200) self.assertIn( - 'Diff from %s to %s - test - Pagure' % + 'Diff from %s to %s - test\n - Pagure' % (c1.oid.hex, c3.oid.hex), output.data) self.assertIn( '
%s .. %s
' % @@ -1276,7 +1276,7 @@ class PagureFlaskRepotests(tests.Modeltests): '/test/c/%s..%s' % (c3.oid.hex, c1.oid.hex)) self.assertEqual(output.status_code, 200) self.assertIn( - 'Diff from %s to %s - test - Pagure' % + 'Diff from %s to %s - test\n - Pagure' % (c3.oid.hex, c1.oid.hex), output.data) self.assertIn( '
%s .. %s
' % @@ -1618,8 +1618,8 @@ class PagureFlaskRepotests(tests.Modeltests): self.assertTrue( '