Skip to content
Snippets Groups Projects
Commit 3e576129 authored by Rodrigo G. Ruiz's avatar Rodrigo G. Ruiz
Browse files

add new test for old files

parent a484a22a
No related branches found
No related tags found
1 merge request!54Resolve "Missing status and mother_id in offline reader"
Pipeline #18597 failed
......@@ -441,7 +441,11 @@ class TestOfflineTracks(unittest.TestCase):
def test_mother_id(self):
assert np.allclose(self.mother_id, self.mc_tracks[1].mother_id[:10].tolist())
def test_attribute_error_raised_for_older_files(self):
with self.assertRaises(AttributeError):
self.tracks[1].mother_id
def test_item_selection(self):
self.assertListEqual(
list(self.tracks[0].dir_z[:2]), [-0.872885221293917, -0.872885221293917]
......
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