FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(network): Now able to use Network without context, and has labels to be automatically cleaned up (#627) by dogukancagatay · Pull Request #630 · testcontainers/testcontainers-python · GitHub

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

Merged
alexanderankin merged 2 commits into
testcontainers:mainfrom
dogukancagatay:network-wo-cm
Jul 1, 2024
Merged

fix(network): Now able to use Network without context, and has labels to be automatically cleaned up (#627)#630
alexanderankin merged 2 commits into
testcontainers:mainfrom
dogukancagatay:network-wo-cm

Conversation

Copy link
Copy Markdown
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 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 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 marked this pull request as draft June 30, 2024 23:48

Copy link
Copy Markdown
Member

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

codecov Bot commented Jun 30, 2024
edited
Loading

Copy link
Copy Markdown

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 marked this pull request as ready for review July 1, 2024 08:58
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 merged commit e93bc29 into testcontainers:main Jul 1, 2024
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Feature: Non-context-manager API for Network

2 participants


Back | FazBrowse Home | New Git URL