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):
2323
2424def 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
2929def 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
162162def 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
167167def test_uppercase_schema ():
You can’t perform that action at this time.
0 commit comments