forked from Github-Mirrors/canaille
Removed an useless test
This commit is contained in:
parent
3411e27c85
commit
a36dfb21fb
1 changed files with 0 additions and 14 deletions
|
@ -179,20 +179,6 @@ def test_registration(testclient, slapd_connection, foo_group):
|
||||||
testclient.get(f"/register/{b64}/{hash}", status=200)
|
testclient.get(f"/register/{b64}/{hash}", status=200)
|
||||||
|
|
||||||
|
|
||||||
def test_registration_invalid_hash(testclient, slapd_connection, foo_group):
|
|
||||||
with testclient.app.app_context():
|
|
||||||
invitation = Invitation(
|
|
||||||
datetime.now().isoformat(),
|
|
||||||
"someoneelse",
|
|
||||||
False,
|
|
||||||
"someone@mydomain.tld",
|
|
||||||
foo_group.dn,
|
|
||||||
)
|
|
||||||
b64 = invitation.b64()
|
|
||||||
|
|
||||||
testclient.get(f"/register/{b64}/{hash}", status=200)
|
|
||||||
|
|
||||||
|
|
||||||
def test_registration_invalid_hash(testclient, slapd_connection, foo_group):
|
def test_registration_invalid_hash(testclient, slapd_connection, foo_group):
|
||||||
with testclient.app.app_context():
|
with testclient.app.app_context():
|
||||||
now = datetime.now().isoformat()
|
now = datetime.now().isoformat()
|
||||||
|
|
Loading…
Reference in a new issue