Skip to content

Conversation

@sylphia-nox
Copy link

@sylphia-nox sylphia-nox commented Nov 13, 2025

Fixes the below depreciation warning for @wait_container_is_ready decorator.

...venv\Lib\site-packages\testcontainers\core\waiting_utils.py:215
\python-wiremock.venv\Lib\site-packages\testcontainers\core\waiting_utils.py:215: DeprecationWarning: The @wait_container_is_ready decorator is deprecated and will be removed in a future version. Use structured wait strategies instead: container.waiting_for(HttpWaitStrategy(8080).for_status_code(200)) or container.waiting_for(LogMessageWaitStrategy('ready'))
@wait_container_is_ready()

Please let me know if more information is needed. There does not seem to be a lot of documentation available online right now for this issue.

I did confirm that this PR reduces the warnings when running tests from 7 to 6.

#126

Submitter checklist

  • The PR request is well described and justified, including the body and the references
  • The PR title represents the desired changelog entry
  • The repository's code style is followed (see the contributing guide)
  • Test coverage that demonstrates that the change works as expected
  • For new features, there's necessary documentation in this pull request or in a subsequent PR to wiremock.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant