tests/test_auth.py: remove checks on forbidden names

This commit is contained in:
dogeystamp 2023-05-22 19:56:35 -04:00
parent 2d56823b17
commit 0bd36b9a95
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -4,13 +4,6 @@ from sachet.server import db
from sachet.server.users import manage
def test_reserved_users(client):
"""Test that the server prevents reserved endpoints from being registered as usernames."""
for user in ["login", "logout", "extend"]:
with pytest.raises(KeyError):
manage.create_user(False, user, "")
def test_unauth_perms(client):
"""Test endpoints to see if they allow unauthenticated users."""
resp = client.get("/users/jeff")