forked from Github-Mirrors/canaille
tests: fix LDAP email placeholder test
This commit is contained in:
parent
6c463ce856
commit
ac8dc19ff2
1 changed files with 2 additions and 2 deletions
|
@ -261,10 +261,10 @@ def test_login_placeholder(testclient):
|
|||
|
||||
testclient.app.config["CANAILLE_LDAP"]["USER_FILTER"] = "(mail={{ login }})"
|
||||
placeholder = testclient.get("/login").form["login"].attrs["placeholder"]
|
||||
assert placeholder == "john@doe.test"
|
||||
assert placeholder == "john.doe@example.com"
|
||||
|
||||
testclient.app.config["CANAILLE_LDAP"]["USER_FILTER"] = (
|
||||
"(|(uid={{ login }})(mail={{ login }}))"
|
||||
)
|
||||
placeholder = testclient.get("/login").form["login"].attrs["placeholder"]
|
||||
assert placeholder == "jdoe or john@doe.test"
|
||||
assert placeholder == "jdoe or john.doe@example.com"
|
||||
|
|
Loading…
Reference in a new issue