Skip to content

Commit 4796d39

Browse files
fix: lint formatting in test_thread_safe.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f123f26 commit 4796d39

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/unit/test_thread_safe.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ def test_instance_backend_sets_config(self, monkeypatch):
166166

167167
with patch("datajoint.instance.Connection"):
168168
inst = Instance(
169-
host="localhost", user="root", password="secret",
169+
host="localhost",
170+
user="root",
171+
password="secret",
170172
backend="postgresql",
171173
)
172174
assert inst.config.database.backend == "postgresql"
@@ -179,19 +181,23 @@ def test_instance_backend_default_from_config(self, monkeypatch):
179181

180182
with patch("datajoint.instance.Connection"):
181183
inst = Instance(
182-
host="localhost", user="root", password="secret",
184+
host="localhost",
185+
user="root",
186+
password="secret",
183187
)
184188
assert inst.config.database.backend == "mysql"
185189

186190
def test_instance_backend_affects_port_default(self, monkeypatch):
187191
"""Instance(backend='postgresql') uses port 5432 by default."""
188192
monkeypatch.setenv("DJ_THREAD_SAFE", "false")
189193
from datajoint.instance import Instance
190-
from unittest.mock import patch, call
194+
from unittest.mock import patch
191195

192196
with patch("datajoint.instance.Connection") as MockConn:
193197
Instance(
194-
host="localhost", user="root", password="secret",
198+
host="localhost",
199+
user="root",
200+
password="secret",
195201
backend="postgresql",
196202
)
197203
# Connection should be called with port 5432 (PostgreSQL default)

0 commit comments

Comments
 (0)