diff --git a/app/controllers/notification_producer.py b/app/controllers/notification_producer.py index 4f13762..dc0e731 100644 --- a/app/controllers/notification_producer.py +++ b/app/controllers/notification_producer.py @@ -267,14 +267,14 @@ def contributor_notification( book: m.Book = db.session.get(m.Book, entity_id) match action: case m.Notification.Actions.CONTRIBUTING: - text = f"You've been added to {book.label} as an Editor/Moderator" + text = f"You've been added to {book.label} as an Contributor" link = url_for( "book.collection_view", book_id=book.id, ) case m.Notification.Actions.DELETE: - text = f"You've been removed from {book.label} as an Editor/Moderator" + text = f"You've been removed from {book.label} as an Contributor" link = url_for( "book.collection_view", book_id=book.id, diff --git a/tests/test_notifications.py b/tests/test_notifications.py index 20865b6..209cfab 100644 --- a/tests/test_notifications.py +++ b/tests/test_notifications.py @@ -57,7 +57,7 @@ def test_notifications(client: FlaskClient): ) assert response.status_code == 200 - # check that user_2 have notification about he was added, deleted as Editor/Moderator and his comment was approved + # check that user_2 have notification about he was added, deleted as Contributor and his comment was approved assert len(user_2.active_notifications) == 3 response: Response = client.post(