Skip to content

Commit fd53931

Browse files
committed
Replace PREFIX in test_schema
1 parent abda8f1 commit fd53931

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_schema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,18 @@ def test_unauthorized_database(db_creds_test):
143143
)
144144

145145

146-
def test_drop_database(db_creds_test):
146+
def test_drop_database(db_creds_test, prefix):
147147
schema = dj.Schema(
148-
PREFIX + "_drop_test", connection=dj.conn(reset=True, **db_creds_test)
148+
prefix + "_drop_test", connection=dj.conn(reset=True, **db_creds_test)
149149
)
150150
assert schema.exists
151151
schema.drop()
152152
assert not schema.exists
153153
schema.drop() # should do nothing
154154

155155

156-
def test_overlapping_name(connection_test):
157-
test_schema = dj.Schema(PREFIX + "_overlapping_schema", connection=connection_test)
156+
def test_overlapping_name(connection_test, prefix):
157+
test_schema = dj.Schema(prefix + "_overlapping_schema", connection=connection_test)
158158

159159
@test_schema
160160
class Unit(dj.Manual):

0 commit comments

Comments
 (0)