Skip to content

Commit 24bacc8

Browse files
fix #1252 - deprecate otumat
1 parent ad22ece commit 24bacc8

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.vscode/launch.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
52
"version": "0.2.0",
63
"configurations": [
7-
{
8-
"name": "Python: Current File",
9-
"type": "python",
10-
"request": "launch",
11-
"program": "${file}",
12-
"console": "integratedTerminal",
13-
"justMyCode": false
14-
}
4+
{
5+
"name": "Debug pytest test",
6+
"type": "python",
7+
"request": "launch",
8+
"module": "pytest",
9+
"args": [
10+
"tests/", // Replace with your actual test folder or file
11+
"-s"
12+
],
13+
"console": "integratedTerminal",
14+
"justMyCode": false
15+
}
1516
]
16-
}
17+
}

datajoint/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def __init__(self, host, user, password, port=None, init_fun=None, use_tls=None)
164164
self.init_fun = init_fun
165165
self._conn = None
166166
self._query_cache = None
167+
self.connect()
167168
if self.is_connected:
168169
logger.info(
169170
"DataJoint {version} connected to {user}@{host}:{port}".format(

0 commit comments

Comments
 (0)