File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1313@pytest .fixture
1414def schema_alter (connection_test ):
1515 schema_any = dj .Schema (
16- PREFIX + "_alter" , context = schema_any_module .LOCALS_ANY , connection = connection_test
16+ PREFIX + "_alter" ,
17+ context = schema_any_module .LOCALS_ANY ,
18+ connection = connection_test ,
1719 )
1820 schema_any (schema_any_module .TTest )
1921 schema_any (schema_any_module .TTest2 )
@@ -61,7 +63,6 @@ def schema_alter(connection_test):
6163
6264
6365class TestAlter :
64-
6566 def test_alter (self , schema_alter ):
6667 original = schema_alter .connection .query (
6768 "SHOW CREATE TABLE " + Experiment .full_table_name
@@ -97,8 +98,11 @@ def test_alter_part(self, schema_alter):
9798 """
9899 https://github.com/datajoint/datajoint-python/issues/936
99100 """
100- self .verify_alter (schema_alter , table = Parent .Child , attribute_sql = "`child_id` .* DEFAULT NULL" )
101+ self .verify_alter (
102+ schema_alter , table = Parent .Child , attribute_sql = "`child_id` .* DEFAULT NULL"
103+ )
101104 self .verify_alter (
102105 schema_alter ,
103- table = Parent .Grandchild , attribute_sql = "`grandchild_id` .* DEFAULT NULL"
106+ table = Parent .Grandchild ,
107+ attribute_sql = "`grandchild_id` .* DEFAULT NULL" ,
104108 )
You can’t perform that action at this time.
0 commit comments