Skip to content
Snippets Groups Projects
Commit 611b2f55 authored by Richard Waite's avatar Richard Waite
Browse files

Fix sliceviewer tests

parent 4cf03ad4
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ def draw_shape(shape_name, shape_info=None):
:param shape_name: The str name of the shape
:param shape_info: The properties of the shape as an optional JSON-encoded str
"""
peak_origin, fg_color, bg_color = (1, 3, 5), "r", "g"
peak_origin, fg_color, bg_color = [1, 3, 5], "r", "g"
peak_shape, slice_info, painter = (MagicMock(), ) * 3
painter.axes = MagicMock()
painter.axes.get_xlim.return_value = (-1, 1)
......
......@@ -142,7 +142,7 @@ class EllipsoidalIntergratedPeakRepresentationTest(unittest.TestCase):
def slice_transform(x):
return x
peak_center = (3, 1, 3)
peak_center = [3, 1, 3]
ellipsoid = create_ellipsoid_info(
radii=(0.5, 0.5, 0.5),
axes=("1 0 0", "0 1 0", "0 0 1"),
......@@ -222,8 +222,8 @@ class EllipsoidalIntergratedPeakRepresentationTest(unittest.TestCase):
painter.ellipse.assert_called_once_with(
x,
y,
FuzzyMatch(signal_width, atol=1e-2),
FuzzyMatch(signal_height, atol=1e-2),
FuzzyMatch(signal_width, atol=2e-2),
FuzzyMatch(signal_height, atol=2e-2),
FuzzyMatch(angle, atol=1e-2),
alpha=alpha,
edgecolor=fg_color,
......@@ -236,9 +236,9 @@ class EllipsoidalIntergratedPeakRepresentationTest(unittest.TestCase):
painter.elliptical_shell.assert_called_once_with(
x,
y,
FuzzyMatch(bkgd_width, atol=1e-2),
FuzzyMatch(bkgd_height, atol=1e-2),
FuzzyMatch(thickness, atol=1e-2),
FuzzyMatch(bkgd_width, atol=2e-2),
FuzzyMatch(bkgd_height, atol=2e-2),
FuzzyMatch(thickness, atol=2e-2),
FuzzyMatch(angle, atol=1e-2),
alpha=alpha,
edgecolor="none",
......
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