tests: reduce test_beam_shape verbosity

This commit is contained in:
Michele Guerini Rocco 2025-02-21 18:12:46 +01:00
parent 3a2dd3697f
commit 8a4cc72485
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -251,9 +251,9 @@ class GrayTest:
plt.show()
for ref, cand in zip(ref, cand):
with self.subTest(ray=(int(ref['j']), int(ref['k']))):
self.assertAlmostEqual(ref['x'], cand['x'], 1)
self.assertAlmostEqual(ref['y'], cand['y'], 1)
ray = f"ray ({ref['j']:g},{ref['k']:g}) changed"
self.assertAlmostEqual(ref['x'], cand['x'], 1, msg=ray)
self.assertAlmostEqual(ref['y'], cand['y'], 1, msg=ray)
def test_error_biased(self):
'''