5126a3e88f8323c7e83d92ed4d9ebe0a059fb7d6,hyperspy/tests/utils/test_roi.py,TestROIs,test_repr_None,#TestROIs#,489

Before Change


        repr(Point1DROI())
        repr(Point2DROI())
        repr(Line2DROI())
        repr(RectangularROI())
        repr(SpanROI())
        repr(CircleROI())

After Change


            for value in tuple(r):
                assert value == t.Undefined
            repr(r)
        for roi in [CircleROI, Line2DROI]:
            r = roi()
            for value in tuple(r)[:-1]:
                assert value == t.Undefined
            assert tuple(r)[-1] == 0
            repr(r)

    def test_repr_vals(self):
        repr(Point1DROI(1.1))
        repr(Point2DROI(1.1, 2.1))
        repr(Line2DROI(0, 0, 1, 1, 0.1))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: hyperspy/hyperspy
Commit Name: 5126a3e88f8323c7e83d92ed4d9ebe0a059fb7d6
Time: 2021-01-31
Author: thomasaarholt@gmail.com
File Name: hyperspy/tests/utils/test_roi.py
Class Name: TestROIs
Method Name: test_repr_None


Project Name: hyperspy/hyperspy
Commit Name: 5126a3e88f8323c7e83d92ed4d9ebe0a059fb7d6
Time: 2021-01-31
Author: thomasaarholt@gmail.com
File Name: hyperspy/tests/utils/test_roi.py
Class Name: TestROIs
Method Name: test_widget_initialisation


Project Name: hyperspy/hyperspy
Commit Name: 5126a3e88f8323c7e83d92ed4d9ebe0a059fb7d6
Time: 2021-01-31
Author: thomasaarholt@gmail.com
File Name: hyperspy/tests/utils/test_roi.py
Class Name: TestROIs
Method Name: test_undefined_call