Skip to content

Commit 2c288b9

Browse files
committed
chore(core): fix linting
1 parent 0e85075 commit 2c288b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/testcontainers/core/waiting_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def _poll(self, check: Callable[[], bool], transient_exceptions: Optional[list[t
136136

137137

138138
# Keep existing wait_container_is_ready but make it use the new system internally
139-
def wait_container_is_ready(*transient_exceptions: type[Exception]) -> Callable[[F], F]:
139+
def wait_container_is_ready(*transient_exceptions: type[Exception]) -> Callable[[F], F]: # noqa: C901
140140
"""
141141
Legacy wait decorator that uses the new wait strategy system internally.
142142
Maintains backwards compatibility with existing code.

core/tests/test_socat.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import httpx
2-
import pytest
1+
import requests
2+
33
from testcontainers.core.container import DockerContainer
44
from testcontainers.core.network import Network
55
from testcontainers.socat.socat import SocatContainer
@@ -16,7 +16,7 @@ def test_socat_with_helloworld():
1616
):
1717
socat_url = f"http://{socat.get_container_host_ip()}:{socat.get_exposed_port(8080)}"
1818

19-
response = httpx.get(f"{socat_url}/ping")
19+
response = requests.get(f"{socat_url}/ping") # noqa: S113
2020

2121
assert response.status_code == 200
2222
assert response.content == b"PONG"

0 commit comments

Comments
 (0)