mirror of
https://github.com/simple-login/app.git
synced 2024-11-13 07:31:12 +01:00
fix test
This commit is contained in:
parent
06874ea97c
commit
cb8b20fc9a
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
from app.db import Session
|
||||
from app.models import (
|
||||
Alias,
|
||||
Contact,
|
||||
|
@ -6,8 +7,9 @@ from tests.utils import login
|
|||
|
||||
|
||||
def test_disable_alias(flask_client):
|
||||
login(flask_client)
|
||||
alias = Alias.first()
|
||||
user = login(flask_client)
|
||||
alias = Alias.create_new_random(user)
|
||||
Session.commit()
|
||||
|
||||
assert alias.enabled
|
||||
flask_client.post(f"/dashboard/unsubscribe/{alias.id}")
|
||||
|
|
Loading…
Reference in a new issue