Skip to content

Commit

Permalink
tests: fix LDAP email placeholder test
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Nov 20, 2024
1 parent 6c463ce commit ac8dc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/backends/ldap/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit ac8dc19

Please sign in to comment.