File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ def part_selector(attr):
23
23
24
24
def test_schema_size_on_disk ():
25
25
number_of_bytes = schema .schema .size_on_disk
26
- assert_true ( isinstance (number_of_bytes , int ) )
26
+ assert isinstance (number_of_bytes , int )
27
27
28
28
29
29
def test_schema_list ():
30
30
schemas = dj .list_schemas ()
31
- assert_true ( schema .schema .database in schemas )
31
+ assert schema .schema .database in schemas
32
32
33
33
34
34
@raises (dj .errors .AccessError )
@@ -96,9 +96,9 @@ def test_drop_database():
96
96
schema = dj .Schema (
97
97
PREFIX + "_drop_test" , connection = dj .conn (reset = True , ** CONN_INFO )
98
98
)
99
- assert_true ( schema .exists )
99
+ assert schema .exists
100
100
schema .drop ()
101
- assert_false ( schema .exists )
101
+ assert not schema .exists
102
102
schema .drop () # should do nothing
103
103
104
104
@@ -160,8 +160,8 @@ def test_list_tables():
160
160
161
161
162
162
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
165
165
166
166
167
167
def test_uppercase_schema ():
You can’t perform that action at this time.
0 commit comments