Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42e8768 commit 2cbfdb3Copy full SHA for 2cbfdb3
lib/matplotlib/tests/test_colors.py
@@ -1613,17 +1613,14 @@ def test_set_clim_emits_single_callback():
1613
callback = unittest.mock.Mock()
1614
image.norm.callbacks.connect('changed', callback)
1615
1616
- # Initial callback count should be zero
1617
- assert callback.call_count == 0
+ callback.assert_not_called()
1618
1619
# Call set_clim() to update the limits
1620
image.set_clim(1, 5)
1621
1622
# Assert that only one "changed" callback is sent after calling set_clim()
1623
callback.assert_called_once()
1624
1625
- plt.close(fig)
1626
-
1627
1628
def test_norm_callback():
1629
increment = unittest.mock.Mock(return_value=None)
0 commit comments