Skip to content
Snippets Groups Projects

Resolve "Missing status and mother_id in offline reader"

Merged Tamas Gal requested to merge 80-missing-methods into master
1 unresolved thread
+ 5
3
@@ -433,8 +433,6 @@ class TestOfflineTracks(unittest.TestCase):
"rec_type",
"rec_stages",
"fitinf",
"status",
"mother_id",
]:
getattr(self.tracks, field)
@@ -443,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]
Loading