tests/test_auth.py: remove checks on forbidden names
This commit is contained in:
parent
2d56823b17
commit
0bd36b9a95
@ -4,13 +4,6 @@ from sachet.server import db
|
|||||||
from sachet.server.users import manage
|
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):
|
def test_unauth_perms(client):
|
||||||
"""Test endpoints to see if they allow unauthenticated users."""
|
"""Test endpoints to see if they allow unauthenticated users."""
|
||||||
resp = client.get("/users/jeff")
|
resp = client.get("/users/jeff")
|
||||||
|
Loading…
Reference in New Issue
Block a user