Remove register URL | Closes #2

This commit is contained in:
PV Tejas 2026-03-01 19:30:52 +05:30
parent ed71714a79
commit 67953ac42e
6 changed files with 10 additions and 4 deletions

View file

@ -14,6 +14,10 @@ def test_register(client, app):
"SELECT * FROM user WHERE USERNAME = 'a'",
).fetchone() is not None
app.config["ALLOW_REGISTER"] = False
response = client.get('/auth/register')
assert b"Admin only" in response.data
@pytest.mark.parametrize(('username', 'password', 'message'), (
('', '', b'Username is required.'),
('a', '', b'Password is required.'),