app-MAIL-temp/tests/dashboard/test_unsubscribe.py

13 lines
254 B
Python
Raw Normal View History

2021-11-02 15:20:33 +01:00
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