diff --git a/Makefile b/Makefile
index e6aed882..72a264b1 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ format:
check-format:
isort --recursive --atomic --check-only panos
- black --check .
+ black --check --diff .
test:
pytest
diff --git a/tests/test_base.py b/tests/test_base.py
index 422eb0a4..9429d7d1 100644
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -1624,13 +1624,15 @@ class TestIsReady(unittest.TestCase):
@mock.patch("time.sleep")
def test_ok(self, mocksleep):
fw = Base.PanDevice("127.0.0.1", "admin", "secret", api_key="apikey")
- fw.xapi.op = mock.Mock(side_effect=[
- Err.PanURLError,
- pan.xapi.PanXapiError,
- Err.PanXapiError,
- ET.fromstring("yes"),
- ValueError,
- ])
+ fw.xapi.op = mock.Mock(
+ side_effect=[
+ Err.PanURLError,
+ pan.xapi.PanXapiError,
+ Err.PanXapiError,
+ ET.fromstring("yes"),
+ ValueError,
+ ],
+ )
ans = fw.is_ready()
@@ -1640,10 +1642,12 @@ def test_ok(self, mocksleep):
@mock.patch("time.sleep")
def test_times_out(self, mocksleep):
fw = Base.PanDevice("127.0.0.1", "admin", "secret", api_key="apikey")
- fw.xapi.op = mock.Mock(side_effect=[
- Err.PanURLError,
- ValueError,
- ])
+ fw.xapi.op = mock.Mock(
+ side_effect=[
+ Err.PanURLError,
+ ValueError,
+ ],
+ )
ans = fw.is_ready(seconds=0)