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

Method populateFile

tables/tests/test_tables.py:6704–6718  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6702 self.populateFile()
6703
6704 def populateFile(self):
6705 # Create a table
6706 table = self.h5file.create_table(
6707 self.h5file.root, "table", self.record, title="__length__ test"
6708 )
6709 # Get the row object associated with the new table
6710 row = table.row
6711
6712 # Fill the table
6713 for i in range(self.nrows):
6714 row.append()
6715
6716 # Flush the buffer for this table
6717 table.flush()
6718 self.table = table
6719
6720 def test01_lengthrows(self):
6721 """Checking __length__ in Table."""

Callers 1

setUpMethod · 0.95

Calls 3

create_tableMethod · 0.45
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected