Skip to content

Commit e257d0a

Browse files
committed
style: fix
1 parent ff0c679 commit e257d0a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

tests/docker-test-servers/baikal/create_baikal_db.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ def add_baikal_user(db_path: Path, username: str, password: str) -> None:
241241
conn = sqlite3.connect(str(db_path))
242242
cursor = conn.cursor()
243243

244-
cursor.execute("INSERT OR REPLACE INTO users (username, digesta1) VALUES (?, ?)", (username, ha1))
244+
cursor.execute(
245+
"INSERT OR REPLACE INTO users (username, digesta1) VALUES (?, ?)", (username, ha1)
246+
)
245247

246248
cursor.execute(
247249
"INSERT OR IGNORE INTO principals (uri, email, displayname) VALUES (?, ?, ?)",

tests/test_servers/registry.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ def load_from_config(self, config: dict) -> None:
196196
# If an auto-discovered server with the same name (case-insensitive) is
197197
# already registered, merge extra test-only fields (like scheduling_users)
198198
# into it instead of registering a duplicate.
199-
existing_key = next(
200-
(k for k in self._servers if k.lower() == name.lower()), None
201-
)
199+
existing_key = next((k for k in self._servers if k.lower() == name.lower()), None)
202200
if existing_key is not None:
203201
if "scheduling_users" in server_config:
204202
self._servers[existing_key].config["scheduling_users"] = server_config[
@@ -211,7 +209,9 @@ def load_from_config(self, config: dict) -> None:
211209
# entry is intended only to augment a running server, not to register
212210
# a new one (e.g. a config written for CI that references Cyrus
213211
# scheduling users but Cyrus isn't started locally).
214-
non_connection_keys = {k for k in server_config if k not in _META_KEYS | _TEST_ONLY_KEYS}
212+
non_connection_keys = {
213+
k for k in server_config if k not in _META_KEYS | _TEST_ONLY_KEYS
214+
}
215215
if not non_connection_keys:
216216
continue
217217

0 commit comments

Comments
 (0)