From 60e1ac0194aa8fe02d39fb73d2ebfe3921d40e23 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Jun 2023 03:57:36 +0000 Subject: [PATCH 1/2] Bump docker/login-action from 2.1.0 to 2.2.0 Bumps [docker/login-action](https://github.com/docker/login-action) from 2.1.0 to 2.2.0. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/v2.1.0...v2.2.0) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f99c2efe..7d842f31 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -72,7 +72,7 @@ jobs: - name: Install dependencies run: make setup - name: Login to ghcr.io - uses: docker/login-action@v2.1.0 + uses: docker/login-action@v2.2.0 with: registry: ghcr.io username: ${{ github.actor }} @@ -109,7 +109,7 @@ jobs: - name: Install dependencies run: make setup - name: Login to ghcr.io - uses: docker/login-action@v2.1.0 + uses: docker/login-action@v2.2.0 with: registry: ghcr.io username: ${{ github.actor }} From cdd0520a3d2182ee90322fbcc374599f7b035d5d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 8 Jun 2023 03:59:13 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/unit/test_metrics.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tests/unit/test_metrics.py b/tests/unit/test_metrics.py index fe0a6953..f636f1f6 100644 --- a/tests/unit/test_metrics.py +++ b/tests/unit/test_metrics.py @@ -652,9 +652,12 @@ async def test_get_latest_value_unknown_instance_type( self, collector_factory: Callable[..., AbstractContextManager[GCPNodePriceCollector]], ) -> None: - with collector_factory("n1-highmem-8", "unknown", True) as collector: - with pytest.raises(AssertionError, match=r"Found prices only for: \[\]"): - await collector.get_latest_value() + with collector_factory( + "n1-highmem-8", "unknown", True + ) as collector, pytest.raises( + AssertionError, match=r"Found prices only for: \[\]" + ): + await collector.get_latest_value() async def test_get_latest_value_unknown_gpu( self, @@ -662,11 +665,10 @@ async def test_get_latest_value_unknown_gpu( ) -> None: with collector_factory( "n1-highmem-8-1xv100", "n1-highmem-8", True - ) as collector: - with pytest.raises( - AssertionError, match=r"Found prices only for: \[CPU, RAM\]" - ): - await collector.get_latest_value() + ) as collector, pytest.raises( + AssertionError, match=r"Found prices only for: \[CPU, RAM\]" + ): + await collector.get_latest_value() class TestAzureNodePriceCollector: