Skip to content

Commit

Permalink
clean up max file tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Jan 8, 2024
1 parent df364d3 commit e4a2fd6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/test_dataset_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ def test_max_files():
"steps": [[0, 7], [7, 14], [14, 21], [21, 28], [28, 35], [35, 40]],
"uuid": "a9490124-3648-11ea-89e9-f5b55c90beef",
}
}
},
"metadata": None,
"form": None,
},
"Data": {
"files": {
Expand All @@ -304,7 +306,9 @@ def test_max_files():
"steps": [[0, 7], [7, 14], [14, 21], [21, 28], [28, 35], [35, 40]],
"uuid": "a210a3f8-3648-11ea-a29f-f5b55c90beef",
}
}
},
"metadata": None,
"form": None,
},
}

Expand All @@ -313,15 +317,17 @@ def test_slice_files():
sliced_files = slice_files(_updated_result, slice(1, None, 2))

assert sliced_files == {
"ZJets": {"files": {}},
"ZJets": {"files": {}, "metadata": None, "form": None},
"Data": {
"files": {
"tests/samples/nano_dimuon_not_there.root": {
"object_path": "Events",
"steps": None,
"uuid": None,
}
}
},
"metadata": None,
"form": None,
},
}

Expand Down

0 comments on commit e4a2fd6

Please sign in to comment.