Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

dogukancagatay
Copy link
Contributor

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

Fixes #627

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

Fixes testcontainers#627
@alexanderankin alexanderankin changed the title feat(network): Add create method to Network class (#627) fix(network): Now able to create method to Network without contextmanager/context/__enter__ (#627) Jun 30, 2024
@alexanderankin alexanderankin changed the title fix(network): Now able to create method to Network without contextmanager/context/__enter__ (#627) fix(network): Now able to create Network without contextmanager/context/__enter__ (#627) Jun 30, 2024
@alexanderankin alexanderankin marked this pull request as draft June 30, 2024 23:48
@alexanderankin
Copy link
Member

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

Copy link

codecov bot commented Jun 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alexanderankin alexanderankin marked this pull request as ready for review July 1, 2024 08:58
@alexanderankin alexanderankin changed the title fix(network): Now able to create Network without contextmanager/context/__enter__ (#627) fix(network): Now able to use Network without context, and has labels to be automatically cleaned up (#627) Jul 1, 2024
@alexanderankin alexanderankin merged commit e93bc29 into testcontainers:main Jul 1, 2024
11 checks passed
@dogukancagatay dogukancagatay deleted the network-wo-cm branch July 1, 2024 12:57
alexanderankin pushed a commit that referenced this pull request Jul 2, 2024
🤖 I have created a release *beep* *boop*
---


##
[4.7.1](testcontainers-v4.7.0...testcontainers-v4.7.1)
(2024-07-02)


### Bug Fixes

* **core:** bad rebase from
[#579](#579)
([#635](#635))
([4766e48](4766e48))
* **modules:** Mailpit Container
([#625](#625))
([0b866ff](0b866ff))
* **modules:** SFTP Server Container
([#629](#629))
([2e7dbf1](2e7dbf1))
* **network:** Now able to use Network without context, and has labels
to be automatically cleaned up
([#627](#627))
([#630](#630))
([e93bc29](e93bc29))
* **postgres:** get_connection_url(driver=None) should return
postgres://...
([#588](#588))
([01d6c18](01d6c18)),
closes
[#587](#587)
* update test module import
([#623](#623))
([16f6ca4](16f6ca4))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Non-context-manager API for Network
2 participants