diff --git a/tests/test_pagure_flask_ui_issues.py b/tests/test_pagure_flask_ui_issues.py index ff4b7bb..a261241 100644 --- a/tests/test_pagure_flask_ui_issues.py +++ b/tests/test_pagure_flask_ui_issues.py @@ -617,10 +617,8 @@ class PagureFlaskIssuestests(tests.Modeltests): 'href="/test/issue/1/edit" title="Edit this issue">', output.data) self.assertIn( - '\n Tag added: tag2', - output.data) - self.assertNotIn( - '\n No changes to edit', + '\n ' + 'Successfully edited issue #1', output.data) self.assertTrue( '

Woohoo a second comment !

' in output.data) @@ -941,7 +939,8 @@ class PagureFlaskIssuestests(tests.Modeltests): 'href="/test/issue/1/edit" title="Edit this issue">', output.data) self.assertIn( - '\n Dependency added', + '\n ' + 'Successfully edited issue #1', output.data) # Add an invalid dependent ticket @@ -960,7 +959,8 @@ class PagureFlaskIssuestests(tests.Modeltests): 'href="/test/issue/1/edit" title="Edit this issue">', output.data) self.assertNotIn( - '\n Dependency added', + '\n ' + 'Successfully edited issue #1', output.data) repo = pagure.lib.get_project(self.session, 'test') @@ -1036,7 +1036,8 @@ class PagureFlaskIssuestests(tests.Modeltests): 'href="/test/issue/1/edit" title="Edit this issue">', output.data) self.assertIn( - '\n Dependency added', + '\n ' + 'Successfully edited issue #1', output.data) # Add an invalid dependent ticket @@ -1055,7 +1056,8 @@ class PagureFlaskIssuestests(tests.Modeltests): 'href="/test/issue/1/edit" title="Edit this issue">', output.data) self.assertNotIn( - '\n Dependency added', + '\n ' + 'Successfully edited issue #1', output.data) repo = pagure.lib.get_project(self.session, 'test')