added caplog for data_store after git pull
@@ -74,11 +74,14 @@ def test_datastore_from_events():
@requires_data()
-def test_datastore_get_observations(data_store):
+def test_datastore_get_observations(data_store, caplog):
"""Test loading data and IRF files via the DataStore"""
observations = data_store.get_observations([23523, 23592])
assert observations[0].obs_id == 23523
-
+ for record in caplog.records:
+ assert record.levelname == "WARNING"
+ assert record.message == "Skipping missing obs_id"
+ assert record.message == "Skipping run with missing IRFs; obs_id"
# Test that default is all observations
observations = data_store.get_observations()
assert len(observations) == 105
