Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Mar 29, 2024
1 parent 42f4c4f commit fd9367b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/pook/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 1 addition & 3 deletions src/pook/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/pook/regex.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import re
import sys

Pattern = re.Pattern

Expand Down
1 change: 0 additions & 1 deletion tests/integration/examples_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
import subprocess
import pytest
from pathlib import Path
Expand Down

0 comments on commit fd9367b

Please sign in to comment.