mirror of
https://github.com/simple-login/app.git
synced 2024-09-07 19:01:29 +02:00
14 lines
311 B
Python
14 lines
311 B
Python
![]() |
from app.models import User
|
||
|
|
||
|
|
||
|
def test_available_sl_domains(flask_client):
|
||
|
user = User.create(
|
||
|
email="a@b.c",
|
||
|
password="password",
|
||
|
name="Test User",
|
||
|
activated=True,
|
||
|
commit=True,
|
||
|
)
|
||
|
|
||
|
assert set(user.available_sl_domains()) == {"d1.test", "d2.test", "sl.local"}
|