(ax)
| 847 | |
| 848 | |
| 849 | def test_tool_line_handle(ax): |
| 850 | positions = [20, 30, 50] |
| 851 | tool_line_handle = widgets.ToolLineHandles(ax, positions, 'horizontal', |
| 852 | useblit=False) |
| 853 | |
| 854 | for artist in tool_line_handle.artists: |
| 855 | assert not artist.get_animated() |
| 856 | assert not artist.get_visible() |
| 857 | |
| 858 | tool_line_handle.set_visible(True) |
| 859 | tool_line_handle.set_animated(True) |
| 860 | |
| 861 | for artist in tool_line_handle.artists: |
| 862 | assert artist.get_animated() |
| 863 | assert artist.get_visible() |
| 864 | |
| 865 | assert tool_line_handle.positions == positions |
| 866 | |
| 867 | |
| 868 | @pytest.mark.parametrize('direction', ("horizontal", "vertical")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…