mirror of
https://github.com/simple-login/app.git
synced 2024-11-15 05:07:33 +08:00
12 lines
254 B
Python
12 lines
254 B
Python
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
|