create a test for unsubscribe
This commit is contained in:
parent
b50f1d60b2
commit
fd7d9969f8
12
tests/dashboard/test_unsubscribe.py
Normal file
12
tests/dashboard/test_unsubscribe.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
from app.models import (
|
||||||
|
Alias,
|
||||||
|
)
|
||||||
|
from tests.utils import login
|
||||||
|
|
||||||
|
|
||||||
|
def test_add_contact_success(flask_client):
|
||||||
|
login(flask_client)
|
||||||
|
alias = Alias.first()
|
||||||
|
|
||||||
|
flask_client.post(f"/dashboard/unsubscribe/{alias.id}")
|
||||||
|
assert not alias.enabled
|
Loading…
Reference in a new issue