testcontainers / testcontainers-python

Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
https://testcontainers-python.readthedocs.io/en/latest/
Apache License 2.0
1.44k stars 270 forks source link

fix(network): Now able to use Network without context, and has labels to be automatically cleaned up (#627) #630

Closed dogukancagatay closed 3 weeks ago

dogukancagatay commented 3 weeks ago

This PR adds create method to the Network class to enable a non-context-manager usage.

Fixes #627

alexanderankin commented 3 weeks ago

I've converted this to a draft for now as I am not sure this is the best idea

codecov[bot] commented 3 weeks ago

Codecov Report

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

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #630 +/- ## ======================================= Coverage ? 77.16% ======================================= Files ? 11 Lines ? 578 Branches ? 83 ======================================= Hits ? 446 Misses ? 106 Partials ? 26 ```

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