Skip to content
Snippets Groups Projects
Commit 36aff534 authored by Taya Snijder's avatar Taya Snijder
Browse files

added extra message descriptions

parent cbff94ea
No related branches found
No related tags found
1 merge request!229Resolve L2SS-554 "Delay pointing unit tests"
......@@ -9,7 +9,7 @@ from tangostationcontrol.test import base
class TestAttributeTypes(base.TestCase):
class TestDelays(base.TestCase):
def test_init(self):
"""
Fail condition is simply the object creation failing
......@@ -39,7 +39,7 @@ class TestAttributeTypes(base.TestCase):
pointing = d.measure.direction(*direction)
dir = d.get_direction_vector(pointing)
self.assertTrue(0.95 <= sqrt(pow(dir[0],2) + pow(dir[1],2)) <= 1.05)
self.assertTrue(0.95 <= sqrt(pow(dir[0],2) + pow(dir[1],2)) <= 1.05, f"x: {dir[0]}, y: {dir[1]}, z: {dir[2]}")
def test_identical_location(self):
# # create a frame tied to the reference position
......@@ -61,7 +61,7 @@ class TestAttributeTypes(base.TestCase):
# calculate the delays based on the set reference position, the set time and now the set direction and antenna positions.
delays = d.convert(direction, antenna_itrf)
self.assertListEqual(delays, [0.0])
self.assertListEqual(delays, [0.0], msg=f"delays = {delays}")
def test_light_second_delay(self):
"""
......
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