mirror of
https://github.com/simple-login/app.git
synced 2025-10-03 20:09:30 +08:00
fix test
This commit is contained in:
parent
8250ab2f22
commit
79ac792136
1 changed files with 2 additions and 2 deletions
|
@ -23,14 +23,14 @@ def test_different_scenarios(flask_client):
|
|||
# {
|
||||
# "can_create_custom": True,
|
||||
# "can_create_random": True,
|
||||
# "custom": {"suffix": ["azdwbw@sl.local"], "suggestion": ""},
|
||||
# "custom": {"suffixes": ["azdwbw@sl.local"], "suggestion": ""},
|
||||
# "existing": ["cat_cat_cat@sl.local"],
|
||||
# }
|
||||
assert r.status_code == 200
|
||||
assert r.json["can_create_custom"]
|
||||
assert r.json["can_create_random"]
|
||||
assert len(r.json["existing"]) == 1
|
||||
assert r.json["custom"]["suffix"]
|
||||
assert r.json["custom"]["suffixes"]
|
||||
assert r.json["custom"]["suggestion"] == "" # no hostname => no suggestion
|
||||
|
||||
# <<< with hostname >>>
|
||||
|
|
Loading…
Add table
Reference in a new issue