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

Method setUp

tables/tests/test_indexes.py:1747–1757  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1745 newIndexProps = IndexProps(auto=False, filters=tb.Filters(complevel=9))
1746
1747 def setUp(self):
1748 super().setUp()
1749
1750 table = self.h5file.create_table("/", "test", self.MyDescription)
1751 table.autoindex = self.oldIndexProps.auto
1752 row = table.row
1753 for i in range(100):
1754 row["icol"] = i % 25
1755 row.append()
1756 table.flush()
1757 self.table = table
1758
1759 def test_attributes(self):
1760 """Storing index properties as table attributes."""

Callers

nothing calls this directly

Calls 4

setUpMethod · 0.45
create_tableMethod · 0.45
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected