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

Method setUp

tables/tests/test_earray.py:2427–2440  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2425class TruncateTestCase(common.TempFileMixin, common.PyTablesTestCase):
2426
2427 def setUp(self):
2428 super().setUp()
2429
2430 # Create an EArray
2431 atom = tb.Int16Atom(dflt=3)
2432 array1 = self.h5file.create_earray(
2433 self.h5file.root,
2434 "array1",
2435 atom=atom,
2436 shape=(0, 2),
2437 title="title array1",
2438 )
2439 # Add a couple of rows
2440 array1.append(np.array([[456, 2], [3, 457]], dtype="int16"))
2441
2442 def test00_truncate(self):
2443 """Checking EArray.truncate() method (truncating to 0 rows)"""

Callers

nothing calls this directly

Calls 3

create_earrayMethod · 0.80
setUpMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected