From 6cf17845b76c7ece728f5c3acc2d215947d0834c Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Date: Jun 14 2016 13:11:20 +0000 Subject: Modified message string for watch option. --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index ccbb8fd..340fd3f 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -2779,7 +2779,7 @@ def update_watch_status(session, project, user, watch): session.add(watcher) session.flush() - msg_success = 'From now you are watching this repo.' + msg_success = 'You are now watching this repo.' if not int(watch): msg_success = 'You are no longer watching this repo.' return msg_success diff --git a/tests/test_pagure_flask_ui_repo.py b/tests/test_pagure_flask_ui_repo.py index 2d8def4..3e49701 100644 --- a/tests/test_pagure_flask_ui_repo.py +++ b/tests/test_pagure_flask_ui_repo.py @@ -2965,7 +2965,7 @@ index 0000000..fb7093d output = self.app.post( '/watch/test/settings/1', data=data, follow_redirects=True) self.assertIn( - '\n From now you are' + '\n You are now' ' watching this repo.', output.data) item = pagure.lib.model.Project( @@ -2987,7 +2987,7 @@ index 0000000..fb7093d output = self.app.post( '/watch/fork/foo/test/settings/1', data=data, follow_redirects=True) self.assertIn( - '\n From now you are' + '\n You are now' ' watching this repo.', output.data) if __name__ == '__main__':