Removed an useless test

This commit is contained in:
Éloi Rivard 2022-02-23 10:49:49 +01:00
parent 3411e27c85
commit a36dfb21fb

View file

@ -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()