Skip to content

Commit 53e81e3

Browse files
committed
Migrate tests from #1095 to pytest
1 parent 219d6d6 commit 53e81e3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_cli.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import subprocess
77
import pytest
88
import datajoint as dj
9-
from . import CONN_INFO_ROOT, PREFIX
109

1110

1211
def test_cli_version(capsys):
@@ -91,8 +90,8 @@ def test_cli_args():
9190
assert "test_host" == stdout[37:46]
9291

9392

94-
def test_cli_schemas():
95-
schema = dj.Schema(PREFIX + "_cli", locals(), connection=dj.conn(**CONN_INFO_ROOT))
93+
def test_cli_schemas(prefix, connection_root):
94+
schema = dj.Schema(prefix + "_cli", locals(), connection=connection_root)
9695

9796
@schema
9897
class IJ(dj.Lookup):

0 commit comments

Comments
 (0)