MCPcopy Create free account
hub / github.com/PyTables/PyTables / setUp

Method setUp

tables/tests/test_queries.py:856–868  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

854 indexed = True
855
856 def setUp(self):
857 super().setUp()
858 self.table.cols.c_bool.create_index(_blocksizes=small_blocksizes)
859 self.table.cols.c_int32.create_index(_blocksizes=small_blocksizes)
860 self.will_query_use_indexing = self.table.will_query_use_indexing
861 self.compileCondition = self.table._compile_condition
862 self.requiredExprVars = self.table._required_expr_vars
863 usable_idxs = set()
864 for expr in self.idx_expr:
865 idxvar = expr[0]
866 if idxvar not in usable_idxs:
867 usable_idxs.add(idxvar)
868 self.usable_idxs = frozenset(usable_idxs)
869
870 def test(self):
871 for condition in self.conditions:

Callers 1

setUpMethod · 0.45

Calls 2

create_indexMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected