def setUp(self): self.explorer = MockExplorer( Namespace( host="mock_connection", include_schema=(), exclude_schema=(), include_table=(), exclude_table=(), catalog=None, )) col1 = Column("c1") col2 = Column("c2") col2._pii = [PiiTypes.LOCATION] schema = Schema("s1") table = Table(schema, "t1") table.add_child(col1) table.add_child(col2) schema = Schema("testSchema") schema.add_child(table) self.explorer._database = Database("database") self.explorer._database.add_child(schema)
def setUp(self): col1 = Column('c1') col2 = Column('c2') col2._pii = [PiiTypes.LOCATION] self.schema = Schema('testSchema') table = Table(self.schema, 't1') table._columns = [col1, col2] self.schema.tables = [table]
def setUp(self): col1 = Column("c1") col2 = Column("c2") col2._pii = [PiiTypes.LOCATION] self.schema = Schema("testSchema") table = Table(self.schema, "t1") table.add_child(col1) table.add_child(col2) self.schema.add_child(table)
def setUp(self): col1 = Column('c1') col2 = Column('c2') col2._pii = [PiiTypes.LOCATION] self.schema = Schema('testSchema') table = Table(self.schema, 't1') table.add_child(col1) table.add_child(col2) self.schema.add_child(table)
def setUp(self): self.explorer = MockExplorer( Namespace(host="mock_connection", catalog=None)) col1 = Column('c1') col2 = Column('c2') col2._pii = [PiiTypes.LOCATION] schema = Schema('s1') table = Table(schema, 't1') table._columns = [col1, col2] schema = Schema('testSchema') schema.tables = [table] self.explorer._schemas = [schema]
def setUp(self): self.explorer = MockExplorer( Namespace(host="mock_connection", include_schema=(), exclude_schema=(), include_table=(), exclude_table=(), catalog=None)) col1 = Column('c1') col2 = Column('c2') col2._pii = [PiiTypes.LOCATION] schema = Schema('s1') table = Table(schema, 't1') table.add_child(col1) table.add_child(col2) schema = Schema('testSchema') schema.add_child(table) self.explorer._database = Database('database') self.explorer._database.add_child(schema)