diff options
Diffstat (limited to 'packages/meshbay-hub/tests/test_notifications_behaviour.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_notifications_behaviour.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/test_notifications_behaviour.py b/packages/meshbay-hub/tests/test_notifications_behaviour.py index 376b9b0..5fe9170 100644 --- a/packages/meshbay-hub/tests/test_notifications_behaviour.py +++ b/packages/meshbay-hub/tests/test_notifications_behaviour.py @@ -161,6 +161,7 @@ async def test_you_are_not_notified_of_your_own_message(client, db_session): the operator and nobody else: everyone was told about their own messages, and the operator was told about no one's. """ + from meshbay_hub.api import revocation as rev from meshbay_hub.api.revocation import _handle_chat_notify owner = await _user(client, "operator") @@ -177,7 +178,14 @@ async def test_you_are_not_notified_of_your_own_message(client, db_session): select(User).where(User.username.in_(["operator", "chatty", "quiet"])) )).scalars().all()} - await _handle_chat_notify(gid, "chatty", ids["chatty"]) + # A node registered for this group, because a notification is now written + # only for a group the sending node actually hosts (AV3). + node_id = "notify-test-node" + rev._node_groups[node_id] = [gid] + try: + await _handle_chat_notify(gid, "chatty", ids["chatty"], node_id=node_id) + finally: + rev._node_groups.pop(node_id, None) async def chat_rows(uid): return (await db_session.execute( |