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)
Exemplo n.º 2
0
    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]
Exemplo n.º 3
0
    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)
Exemplo n.º 4
0
    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)
Exemplo n.º 5
0
    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]
Exemplo n.º 6
0
    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)