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

Method setUp

tables/tests/test_vlarray.py:4279–4290  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4277class TruncateTestCase(common.TempFileMixin, common.PyTablesTestCase):
4278
4279 def setUp(self):
4280 super().setUp()
4281
4282 # Create an VLArray
4283 arr = tb.Int16Atom(dflt=3)
4284 array1 = self.h5file.create_vlarray(
4285 self.h5file.root, "array1", arr, "title array1"
4286 )
4287
4288 # Add a couple of rows
4289 array1.append(np.array([456, 2], dtype="int16"))
4290 array1.append(np.array([3], dtype="int16"))
4291
4292 def test00_truncate(self):
4293 """Checking VLArray.truncate() method (truncating to 0 rows)"""

Callers

nothing calls this directly

Calls 3

create_vlarrayMethod · 0.80
setUpMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected