Skip to content

Commit c307654

Browse files
adamtheturtleclaude
andcommitted
Suppress pylint no-self-use for test files
Use @staticmethod on test methods that don't reference self. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fbff605 commit c307654

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_transports.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
class TestHTTPXTransport:
1313
"""Tests for ``HTTPXTransport``."""
1414

15+
@staticmethod
1516
@respx.mock
16-
def test_float_timeout(self) -> None:
17+
def test_float_timeout() -> None:
1718
"""``HTTPXTransport`` works with a float timeout."""
1819
respx.post(url="https://example.com/test").mock(
1920
return_value=httpx.Response(
@@ -34,8 +35,9 @@ def test_float_timeout(self) -> None:
3435
assert response.text == "OK"
3536
assert response.tell_position == len(b"OK")
3637

38+
@staticmethod
3739
@respx.mock
38-
def test_tuple_timeout(self) -> None:
40+
def test_tuple_timeout() -> None:
3941
"""``HTTPXTransport`` works with a (connect, read) timeout
4042
tuple.
4143
"""

0 commit comments

Comments
 (0)