unit test fixes to match new server config with superevents

parent 2ff7ae57
......@@ -340,7 +340,7 @@ class TestMain(TestGraceDb):
def test_remove_label_event(self):
"""Remove label added by test_label_event"""
r = self._gracedb.removeLabel(self._eventId, self._labelName)
self.assertEqual(r.status, 200)
self.assertEqual(r.status, 204)
label_list = [l['name'] for l in
self._gracedb.labels(self._eventId).json()['labels']]
self.assertNotIn(self._labelName, label_list)
......
......@@ -65,7 +65,6 @@ class TestVOEvents(TestGraceDb):
r = self._gracedb.createVOEvent(self._graceid, "Preliminary")
rdict = r.json()
self.assertTrue('voevent_type' in list(rdict.keys()))
preliminary_voevent_text = rdict['text']
def test_retrieve_preliminary_voevent(self):
"""Retrieve preliminary VOEvent"""
......
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