diff --git a/src/pook/exceptions.py b/src/pook/exceptions.py index 25334d8..931a3a4 100644 --- a/src/pook/exceptions.py +++ b/src/pook/exceptions.py @@ -15,7 +15,11 @@ class PookNetworkFilterError(Exception): class PookExpiredMock(Exception): def __init__(self, *args, **kwargs): - warnings.warn("PookExpiredMock is deprecated and will be removed in a future version of Pook", DeprecationWarning, stacklevel=2) + warnings.warn( + "PookExpiredMock is deprecated and will be removed in a future version of Pook", + DeprecationWarning, + stacklevel=2, + ) super().__init__(*args, **kwargs) diff --git a/src/pook/mock.py b/src/pook/mock.py index 3b38cae..95700f7 100644 --- a/src/pook/mock.py +++ b/src/pook/mock.py @@ -768,9 +768,7 @@ def match(self, request): return False, errors if self.isdone(): - return False, [ - f"Mock matches request but is expired.\n{repr(self)}" - ] + return False, [f"Mock matches request but is expired.\n{repr(self)}"] # Register matched request for further inspecion and reference self._calls.append(request) diff --git a/src/pook/regex.py b/src/pook/regex.py index ec22344..a76b6c1 100644 --- a/src/pook/regex.py +++ b/src/pook/regex.py @@ -1,5 +1,4 @@ import re -import sys Pattern = re.Pattern diff --git a/tests/integration/examples_test.py b/tests/integration/examples_test.py index f2f9206..e0d8e6f 100644 --- a/tests/integration/examples_test.py +++ b/tests/integration/examples_test.py @@ -1,4 +1,3 @@ -import sys import subprocess import pytest from pathlib import Path