Skip to content

Commit

Permalink
chore: pre-commit update
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Mar 7, 2024
1 parent 9af9a30 commit bd57d69
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.2.1'
rev: 'v0.3.1'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -25,7 +25,7 @@ repos:
hooks:
- id: docformatter
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand Down
6 changes: 3 additions & 3 deletions tests/app/test_mails.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def test_mail_with_logo_in_http(testclient, logged_admin, smtpd, httpserver):
raw_logo = fd.read()

httpserver.expect_request(logo_path).respond_with_data(raw_logo)
testclient.app.config[
"LOGO"
] = f"http://{httpserver.host}:{httpserver.port}{logo_path}"
testclient.app.config["LOGO"] = (
f"http://{httpserver.host}:{httpserver.port}{logo_path}"
)
assert len(smtpd.messages) == 0

res = testclient.get("/admin/mail")
Expand Down
6 changes: 3 additions & 3 deletions tests/backends/ldap/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def test_install_schemas_twice(configuration, slapd_server):
def test_install_no_permissions_to_install_schemas(configuration, slapd_server):
configuration["BACKENDS"]["LDAP"]["ROOT_DN"] = slapd_server.suffix
configuration["BACKENDS"]["LDAP"]["URI"] = slapd_server.ldap_uri
configuration["BACKENDS"]["LDAP"][
"BIND_DN"
] = "uid=admin,ou=users,dc=mydomain,dc=tld"
configuration["BACKENDS"]["LDAP"]["BIND_DN"] = (
"uid=admin,ou=users,dc=mydomain,dc=tld"
)
configuration["BACKENDS"]["LDAP"]["BIND_PW"] = "admin"

with Backend(configuration).session():
Expand Down
6 changes: 3 additions & 3 deletions tests/backends/ldap/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ def test_login_placeholder(testclient):
placeholder = testclient.get("/login").form["login"].attrs["placeholder"]
assert placeholder == "john@doe.com"

testclient.app.config["BACKENDS"]["LDAP"][
"USER_FILTER"
] = "(|(uid={{ login }})(mail={{ login }}))"
testclient.app.config["BACKENDS"]["LDAP"]["USER_FILTER"] = (
"(|(uid={{ login }})(mail={{ login }}))"
)
placeholder = testclient.get("/login").form["login"].attrs["placeholder"]
assert placeholder == "jdoe or john@doe.com"

0 comments on commit bd57d69

Please sign in to comment.