Commit e3d57296 authored by Alexander Pace's avatar Alexander Pace

RAVEN tests

Adding integration tests in support of the RAVEN superevent
field and VOEvent changes.
parent 097d1b3d
......@@ -86,6 +86,11 @@ def test_creation_with_labels(client, create_event):
{'t_start': 208, 't_end': 28992},
{'preferred_event': True},
{'t_start': 972, 't_0': 1028, 't_end': 1098, 'preferred_event': True},
{'t_start': 972, 't_0': 1028, 't_end': 1098, 'preferred_event': True},
{'t_start': 1024, 't_0': 2048, 't_end': 4096, 'preferred_event': True,
'em_type': 'EM_TYPE_TEST'},
{'t_start': 1025, 't_0': 2049, 't_end': 4097, 'preferred_event': True,
'em_type': 'EM_TYPE_TEST', 'coinc_far': 1234.0},
]
)
def test_update(client, create_event, create_superevent, params):
......
......@@ -134,7 +134,7 @@ def test_update_no_args(safe_client):
{'preferred_event': 'G0001'},
{'em_type': 'EM_TEST'},
{'coinc_far': '4'},
{'t_start': 1, 't_0': 2, 't_end': 3, 'preferred_event': 'G0001',
{'t_start': 111, 't_0': 222, 't_end': 333, 'preferred_event': 'G0001',
'em_type': 'EM_TEST', 'coinc_far': '4'},
]
)
......
......@@ -168,3 +168,4 @@ def test_create_initial_voevent_no_skymap(safe_client):
mock.patch(template_prop, mock_template_dict): # noqa: E127
with pytest.raises(ValueError, match=err_msg):
safe_client.createVOEvent('TS121212a', 'IN')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment