Skip to content
Snippets Groups Projects
Commit 7a8b7ba2 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add more tests

parent 66125553
No related branches found
No related tags found
No related merge requests found
Pipeline #6919 passed with warnings
......@@ -6,6 +6,18 @@ from km3io import JppReader
SAMPLES_DIR = os.path.join(os.path.dirname(__file__), "samples")
class TestJppEvents(unittest.TestCase):
def setUp(self):
self.events = JppReader(os.path.join(SAMPLES_DIR,
"jpp_v12.0.0.root")).events
def test_index_lookup(self):
event = self.events[1]
assert 124 == len(event.snapshot_hits)
event = self.events[-1]
assert 78 == len(event.snapshot_hits)
class TestJppEventsSnapshotHits(unittest.TestCase):
def setUp(self):
self.events = JppReader(os.path.join(SAMPLES_DIR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment