diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-15 02:16:39 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-15 02:21:01 +0200 |
| commit | bdefcd025604f2c3009fe5e0cc01213c2ba62a6a (patch) | |
| tree | eebd34aa234a9148045ca25b00bf7c8039e00ccf /packages/meshbay-hub/tests/test_notification_dismissal.py | |
| parent | 027e7d55f3bb57ba5150fd77e8f0114a0baf8d5c (diff) | |
| download | meshbay-bdefcd025604f2c3009fe5e0cc01213c2ba62a6a.tar.gz | |
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XuNrwLf5EFWCMHzfoEvnpm
Diffstat (limited to 'packages/meshbay-hub/tests/test_notification_dismissal.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_notification_dismissal.py | 10 |
1 files changed, 5 insertions, 5 deletions
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 |