testcontainers-python icon indicating copy to clipboard operation
testcontainers-python copied to clipboard

feat(core): Protocol support for container port bind and expose

Open Tranquility2 opened this issue 1 year ago • 1 comments

Fix: #674

Changes:

  1. Proper type hinting for ports bindings, support strings like 8080/tcp or 8125/udp
  2. Backward compatible with int
  3. More test coverage
  4. Improve documentations regarding the usage of with_bind_ports and with_exposed_ports

Any comments will be appreciated

Tranquility2 avatar Aug 21 '24 21:08 Tranquility2

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (main@e9e40f9). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #690   +/-   ##
=======================================
  Coverage        ?   85.84%           
=======================================
  Files           ?       12           
  Lines           ?      678           
  Branches        ?      106           
=======================================
  Hits            ?      582           
  Misses          ?       73           
  Partials        ?       23           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Aug 22 '24 04:08 codecov[bot]