@@ -67,22 +67,7 @@ class Character(self.base):
6767 self .character = Character
6868 self .session = Session ()
6969
70- def test_pks_are_retrieved_depending_on_version_set_old (self ):
71- meta = self .character .metadata
72- insp = inspect (meta .bind )
73- self .engine .dialect .server_version_info = (0 , 54 , 0 )
74-
75- self .fake_cursor .rowcount = 1
76- self .fake_cursor .description = (
77- ('foo' , None , None , None , None , None , None ),
78- )
79- self .fake_cursor .fetchone = MagicMock (return_value = [["id" , "id2" , "id3" ]])
80-
81- eq_ (insp .get_pk_constraint ("characters" )['constrained_columns' ], {"id" , "id2" , "id3" })
82- self .fake_cursor .fetchone .assert_called_once_with ()
83- in_ ("information_schema.table_constraints" , self .executed_statement )
84-
85- def test_pks_are_retrieved_depending_on_version_set_new (self ):
70+ def test_primary_keys (self ):
8671 meta = self .character .metadata
8772 insp = inspect (meta .bind )
8873 self .engine .dialect .server_version_info = (2 , 3 , 0 )
@@ -116,9 +101,3 @@ def test_get_table_names(self):
116101 eq_ (insp .get_table_names (self .connection , "doc" ),
117102 ['t1' , 't2' ])
118103 in_ ("WHERE table_schema = ? ORDER BY" , self .executed_statement )
119-
120- insp = inspect (self .character .metadata .bind )
121- self .engine .dialect .server_version_info = (0 , 56 , 0 )
122- eq_ (insp .get_table_names (self .connection , "doc" ),
123- ['t1' , 't2' ])
124- in_ ("WHERE schema_name = ? ORDER BY" , self .executed_statement )
0 commit comments