Skip to content

Commit 7598441

Browse files
committed
nose2pytest test_schema
1 parent f34ca35 commit 7598441

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_schema.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ def part_selector(attr):
2323

2424
def test_schema_size_on_disk():
2525
number_of_bytes = schema.schema.size_on_disk
26-
assert_true(isinstance(number_of_bytes, int))
26+
assert isinstance(number_of_bytes, int)
2727

2828

2929
def test_schema_list():
3030
schemas = dj.list_schemas()
31-
assert_true(schema.schema.database in schemas)
31+
assert schema.schema.database in schemas
3232

3333

3434
@raises(dj.errors.AccessError)
@@ -96,9 +96,9 @@ def test_drop_database():
9696
schema = dj.Schema(
9797
PREFIX + "_drop_test", connection=dj.conn(reset=True, **CONN_INFO)
9898
)
99-
assert_true(schema.exists)
99+
assert schema.exists
100100
schema.drop()
101-
assert_false(schema.exists)
101+
assert not schema.exists
102102
schema.drop() # should do nothing
103103

104104

@@ -160,8 +160,8 @@ def test_list_tables():
160160

161161

162162
def test_schema_save():
163-
assert_true("class Experiment(dj.Imported)" in schema.schema.code)
164-
assert_true("class Experiment(dj.Imported)" in schema_empty.schema.code)
163+
assert "class Experiment(dj.Imported)" in schema.schema.code
164+
assert "class Experiment(dj.Imported)" in schema_empty.schema.code
165165

166166

167167
def test_uppercase_schema():

0 commit comments

Comments
 (0)