File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments