Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ classifiers = [
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9, <3.14"
requires-python = ">=3.9.2, <3.14"
dependencies = [
"requests>=2.32.4"
]

[project.optional-dependencies]
testing = [
"docker>=7.1.0",
"testcontainers>=3.7.1,<4.0.0",
"testcontainers>=4.13.2",
]

[dependency-groups]
Expand Down
4 changes: 2 additions & 2 deletions wiremock/testing/testcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import requests
from testcontainers.core.container import DockerContainer
from testcontainers.core.exceptions import ContainerStartException
from testcontainers.core.waiting_utils import wait_container_is_ready
from testcontainers.core.wait_strategies import HttpWaitStrategy

from wiremock.resources.mappings.models import Mapping

Expand Down Expand Up @@ -187,7 +187,6 @@ def reload_mappings(self) -> requests.Response:

return resp

@wait_container_is_ready()
def configure(self) -> None:
if not self.server_running():
raise WireMockContainerException(
Expand Down Expand Up @@ -221,6 +220,7 @@ def get_url(self, path: str) -> str:
def start(self, cmd: Optional[str] = None) -> "WireMockContainer":
self.with_command(cmd)
super().start()
self.waiting_for(HttpWaitStrategy(self.https_server_port if self.secure else self.http_server_port))
self.configure()
return self

Expand Down