MCPcopy
hub / github.com/treeverse/dvc / test_drop

Function test_drop

tests/unit/test_tabular_data.py:148–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147
148def test_drop():
149 td = TabularData(["col1", "col2", "col3", "other"])
150 td.append(["foo", "bar", "baz", "other_val"])
151 assert list(td) == [["foo", "bar", "baz", "other_val"]]
152 td.drop("col2")
153 assert td.keys() == ["col1", "col3", "other"]
154 assert list(td) == [["foo", "baz", "other_val"]]
155
156
157def test_protected():

Callers

nothing calls this directly

Calls 4

appendMethod · 0.95
dropMethod · 0.95
keysMethod · 0.95
TabularDataClass · 0.90

Tested by

no test coverage detected