From 8de16f07707eff63873352abf7e5198fd28d0779 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 12 2019 12:11:58 +0000 Subject: Fix tests for the change in indentation in the html Signed-off-by: Pierre-Yves Chibon --- diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index 7759e40..b23643d 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -2835,20 +2835,20 @@ class PagureFlaskRepotests(tests.Modeltests): self.assertEqual(output.status_code, 200) output_text = output.get_data(as_text=True) self.assertIn( - '\n \n  Commits' - '\n ', output_text) + '\n ', output_text) #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) output_text = output.get_data(as_text=True) self.assertIn( - '\n \n  Commits' - '\n ', output_text) + '\n \n', output_text) # Add a fork of a fork item = pagure.lib.model.Project( @@ -2899,21 +2899,21 @@ class PagureFlaskRepotests(tests.Modeltests): self.assertEqual(output.status_code, 200) output_text = output.get_data(as_text=True) self.assertIn( - '\n ' + '\n ' ' Commits' - '\n ', output_text) + '\n \n', output_text) #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) output_text = output.get_data(as_text=True) self.assertIn( - '\n \n  Commits' - '\n ', output_text) + '\n ', output_text) def test_view_commit_with_full_link(self): """ Test the view_commit endpoint when the commit message includes