Skip to content
Snippets Groups Projects
Commit 630821dd authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Fixed a test

parent aad8e07f
No related branches found
No related tags found
1 merge request!63Docstring update
Pipeline #
......@@ -294,10 +294,8 @@ class TestDetector(unittest.TestCase):
self.assertEqual(self.ifo.data, np.array([1]))
def test_unit_vector_along_arm_default(self):
with mock.patch('logging.warning') as m:
m.side_effect = KeyError('foo')
with self.assertRaises(KeyError):
self.ifo.unit_vector_along_arm('z')
with self.assertRaises(ValueError):
self.ifo.unit_vector_along_arm('z')
def test_unit_vector_along_arm_x(self):
with mock.patch('numpy.array') as m:
......
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