class documentation

class ComponentReflectionTest(fixtures.TablesTest):

View In Hierarchy

Undocumented

Class Method define​_index Undocumented
Class Method define​_reflected​_tables Undocumented
Class Method define​_tables Undocumented
Class Method define​_temp​_tables Undocumented
Class Method define​_views Undocumented
Class Method setup​_bind Undocumented
Method ​_assert​_insp​_indexes Undocumented
Method ​_test​_get​_comments Undocumented
Method test​_autoincrement​_col test that 'autoincrement' is reflected according to sqla's policy.
Method test​_dialect​_initialize Undocumented
Method test​_get​_columns Undocumented
Method test​_get​_comments Undocumented
Method test​_get​_comments​_with​_schema Undocumented
Method test​_get​_default​_schema​_name Undocumented
Method test​_get​_foreign​_keys Undocumented
Method test​_get​_indexes Undocumented
Method test​_get​_inter​_schema​_foreign​_keys Undocumented
Method test​_get​_noncol​_index Undocumented
Method test​_get​_pk​_constraint Undocumented
Method test​_get​_schema​_names Undocumented
Method test​_get​_schema​_names​_w​_translate​_map test #7300
Method test​_get​_table​_names Undocumented
Method test​_get​_table​_oid Undocumented
Method test​_get​_temp​_table​_columns Undocumented
Method test​_get​_temp​_table​_indexes Undocumented
Method test​_get​_temp​_table​_names Undocumented
Method test​_get​_temp​_table​_unique​_constraints Undocumented
Method test​_get​_temp​_view​_columns Undocumented
Method test​_get​_temp​_view​_names Undocumented
Method test​_get​_unique​_constraints Undocumented
Method test​_get​_view​_definition Undocumented
Class Variable __backend__ Undocumented
Class Variable run​_deletes Undocumented
Class Variable run​_inserts Undocumented

Inherited from TablesTest:

Class Method dispose​_bind Undocumented
Class Method fixtures Undocumented
Class Method insert​_data Undocumented
Class Method ​_init​_class Undocumented
Class Method ​_load​_fixtures Insert rows as represented by the fixtures() method.
Class Method ​_setup​_once​_inserts Undocumented
Class Method ​_setup​_once​_tables Undocumented
Class Method ​_teardown​_once​_metadata​_bind Undocumented
Method ​_setup​_each​_inserts Undocumented
Method ​_setup​_each​_tables Undocumented
Method ​_setup​_tables​_test​_class Undocumented
Method ​_setup​_tables​_test​_instance Undocumented
Method ​_teardown​_each​_tables Undocumented
Method sql​_count​_ Undocumented
Method sql​_eq​_ Undocumented
Class Variable ​_tables​_metadata Undocumented
Class Variable bind Undocumented
Class Variable other Undocumented
Class Variable run​_create​_tables Undocumented
Class Variable run​_define​_tables Undocumented
Class Variable run​_dispose​_bind Undocumented
Class Variable run​_setup​_bind Undocumented
Class Variable sequences Undocumented
Class Variable tables Undocumented
Property tables​_test​_metadata Undocumented

Inherited from TestBase (via TablesTest):

Method assert​_ Undocumented
Method async​_testing​_engine Undocumented
Method connection Undocumented
Method connection​_no​_trans Undocumented
Method future​_connection Undocumented
Method future​_engine Undocumented
Method metadata Provide bound MetaData for a single test, dropping afterwards.
Method registry Undocumented
Method testing​_engine Undocumented
Method trans​_ctx​_manager​_fixture Undocumented
Class Variable __leave​_connections​_for​_teardown__ Undocumented
Class Variable __only​_on__ Undocumented
Class Variable __requires__ Undocumented
Class Variable __skip​_if__ Undocumented
Class Variable __unsupported​_on__ Undocumented
@classmethod
def define_index(cls, metadata, users):

Undocumented

@classmethod
def define_reflected_tables(cls, metadata, schema):

Undocumented

@classmethod
def define_tables(cls, metadata):
@classmethod
def define_temp_tables(cls, metadata):

Undocumented

@classmethod
def define_views(cls, metadata, schema):

Undocumented

@classmethod
def setup_bind(cls):
def _assert_insp_indexes(self, indexes, expected_indexes):

Undocumented

def _test_get_comments(self, schema=None):

Undocumented

@testing.requires.table_reflection
def test_autoincrement_col(self):

test that 'autoincrement' is reflected according to sqla's policy.

Don't mark this test as unsupported for any backend !

(technically it fails with MySQL InnoDB since "id" comes before "id2")

A backend is better off not returning "autoincrement" at all, instead of potentially returning "False" for an auto-incrementing primary key column.

@testing.requires.schema_reflection
def test_dialect_initialize(self):

Undocumented

@testing.combinations((False, False), (False, True, testing.requires.schemas), (True, False, testing.requires.view_reflection), (True, True, testing.requires.schemas+testing.requires.view_reflection), argnames='use_views,use_schema')
def test_get_columns(self, connection, use_views, use_schema):

Undocumented

@testing.requires.comment_reflection
def test_get_comments(self):

Undocumented

@testing.requires.comment_reflection
@testing.requires.schemas
def test_get_comments_with_schema(self):

Undocumented

@testing.requires.schema_reflection
def test_get_default_schema_name(self):

Undocumented

@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
@testing.requires.foreign_key_constraint_reflection
def test_get_foreign_keys(self, connection, use_schema):

Undocumented

@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
def test_get_indexes(self, connection, use_schema):

Undocumented

@testing.requires.cross_schema_fk_reflection
@testing.requires.schemas
def test_get_inter_schema_foreign_keys(self):

Undocumented

@testing.combinations(('noncol_idx_test_nopk', 'noncol_idx_nopk'), ('noncol_idx_test_pk', 'noncol_idx_pk'), argnames='tname,ixname')
@testing.requires.index_reflection
@testing.requires.indexes_with_ascdesc
def test_get_noncol_index(self, connection, tname, ixname):

Undocumented

@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
@testing.requires.primary_key_constraint_reflection
def test_get_pk_constraint(self, connection, use_schema):

Undocumented

@testing.requires.schema_reflection
def test_get_schema_names(self):

Undocumented

@testing.requires.schema_reflection
def test_get_schema_names_w_translate_map(self, connection):
test #7300
@testing.requires.foreign_key_constraint_reflection
@testing.combinations((None, True, False, False), (None, True, False, True, testing.requires.schemas), ('foreign_key', True, False, False), (None, False, True, False), (None, False, True, True, testing.requires.schemas), (None, True, True, False), (None, True, True, True, testing.requires.schemas), argnames='order_by,include_plain,include_views,use_schema')
def test_get_table_names(self, connection, order_by, include_plain, include_views, use_schema):

Undocumented

@testing.combinations(('users', False), ('users', True, testing.requires.schemas), argnames='table_name,use_schema')
@testing.only_on('postgresql', 'PG specific feature')
def test_get_table_oid(self, connection, table_name, use_schema):

Undocumented

@testing.requires.temp_table_reflection
def test_get_temp_table_columns(self):

Undocumented

@testing.requires.temp_table_reflect_indexes
def test_get_temp_table_indexes(self):

Undocumented

@testing.requires.temp_table_names
def test_get_temp_table_names(self):

Undocumented

@testing.requires.temp_table_reflection
@testing.requires.unique_constraint_reflection
def test_get_temp_table_unique_constraints(self):

Undocumented

@testing.requires.temp_table_reflection
@testing.requires.view_column_reflection
@testing.requires.temporary_views
def test_get_temp_view_columns(self):

Undocumented

@testing.requires.view_reflection
@testing.requires.temp_table_names
@testing.requires.temporary_views
def test_get_temp_view_names(self):

Undocumented

@testing.combinations((True, testing.requires.schemas), (False), argnames='use_schema')
@testing.requires.unique_constraint_reflection
def test_get_unique_constraints(self, metadata, connection, use_schema):

Undocumented

@testing.requires.view_reflection
@testing.combinations((False), (True, testing.requires.schemas), argnames='use_schema')
def test_get_view_definition(self, connection, use_schema):

Undocumented

__backend__: bool =

Undocumented

run_deletes =
run_inserts =