From bdefcd025604f2c3009fe5e0cc01213c2ba62a6a Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Tue, 15 Sep 2026 02:16:39 +0200 Subject: feat(hub): usernames are at least 8 characters at registration Existing shorter accounts keep signing in. Test usernames padded to match. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01XuNrwLf5EFWCMHzfoEvnpm --- packages/meshbay-hub/tests/test_notification_dismissal.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/meshbay-hub/tests/test_notification_dismissal.py') diff --git a/packages/meshbay-hub/tests/test_notification_dismissal.py b/packages/meshbay-hub/tests/test_notification_dismissal.py index 07cf715..1c9c7b3 100644 --- a/packages/meshbay-hub/tests/test_notification_dismissal.py +++ b/packages/meshbay-hub/tests/test_notification_dismissal.py @@ -64,11 +64,11 @@ async def _login(client, username): async def _one_notification_for_alice(client): """A role change is the cheapest thing that notifies somebody.""" - await _register(client, "admin", "admin@x.com") - set_admin_usernames(["admin"]) - admin_token = await _login(client, "admin") - uid = await _register(client, "alice", "a@x.com") - alice_token = await _login(client, "alice") + await _register(client, "admin_test", "admin@x.com") + set_admin_usernames(["admin_test"]) + admin_token = await _login(client, "admin_test") + uid = await _register(client, "alice_test", "a@x.com") + alice_token = await _login(client, "alice_test") await client.patch(f"/v1/admin/users/{uid}", json={"role": "moderator"}, headers={"Authorization": f"Bearer {admin_token}"}) return alice_token -- cgit v1.2.3