Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 11, 2024
1 parent f7c4fd5 commit 2813c51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
from unittest.mock import patch, MagicMock


@pytest.fixture
def mock_ipython():
with patch("IPython.get_ipython") as mock_get_ipython:
Expand Down
5 changes: 2 additions & 3 deletions tests/test_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import numpy as np
from numpy.testing import assert_allclose
import contextlib
from unittest.mock import patch, MagicMock

mpl = pytest.importorskip("matplotlib")
plt = pytest.importorskip("matplotlib.pyplot")
Expand Down Expand Up @@ -303,8 +302,8 @@ def __call__(self, a, b):
mw.fit_button.click()
assert_allclose(m.values, (100, -100), atol=1e-5)
# this should trigger an exception
#plot.raises = True
#with plot.assert_call():
# plot.raises = True
# with plot.assert_call():
# mw.fit_button.click()


Expand Down

0 comments on commit 2813c51

Please sign in to comment.