Remove register URL | Closes #2
This commit is contained in:
parent
ed71714a79
commit
67953ac42e
6 changed files with 10 additions and 4 deletions
|
|
@ -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.'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue