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): 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]