From 6083f434a05e3974bd5aa4eccc761bd30b213952 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 12:50:40 +0200 Subject: [PATCH] chore(deps): update dependency ops to v2.17.0 (#71) * chore(deps): update dependency ops to v2.17.0 * fix linting --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Arturo Seijas --- requirements.txt | 2 +- tests/integration/helper.py | 2 +- tests/unit/test_charm.py | 8 ++++---- tests/unit/test_gateway.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/requirements.txt b/requirements.txt index 510d5c8..b3642bb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ cryptography==43.0.1 jsonschema==4.23.0 lightkube==0.15.3 -ops==2.16.1 +ops==2.17.0 pydantic==2.9.2 rpds-py==0.18.1 diff --git a/tests/integration/helper.py b/tests/integration/helper.py index 03bca89..ddf2405 100644 --- a/tests/integration/helper.py +++ b/tests/integration/helper.py @@ -37,7 +37,7 @@ def __init__( # Ignore pylint rule as this is the parent method signature def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None - ): # pylint: disable=too-many-arguments + ): # pylint: disable=too-many-arguments, too-many-positional-arguments """Wrap HTTPAdapter send to modify the outbound request. Args: diff --git a/tests/unit/test_charm.py b/tests/unit/test_charm.py index 0f23a44..d630297 100644 --- a/tests/unit/test_charm.py +++ b/tests/unit/test_charm.py @@ -82,14 +82,14 @@ def test_deploy_lightkube_error( pytest.param(404, id="not found."), ], ) -def test_reconcile_api_error_4xx( # pylint: disable=too-many-arguments +def test_reconcile_api_error_4xx( harness: Harness, client_with_mock_external: MagicMock, certificates_relation_data: dict[str, str], monkeypatch: pytest.MonkeyPatch, error_code: int, config: dict[str, str], -): +): # pylint: disable=too-many-arguments, too-many-positional-arguments """ arrange: Given a charm with valid tls/gateway integration and mocked client returning 4xx. act: Update the charm with valid config. @@ -147,14 +147,14 @@ def test_reconcile_api_error_forbidden( @pytest.mark.usefixtures("client_with_mock_external") -def test_create_http_route_insufficient_permission( # pylint: disable=too-many-arguments +def test_create_http_route_insufficient_permission( harness: Harness, certificates_relation_data: dict[str, str], gateway_relation_application_data: dict[str, str], gateway_relation_unit_data: dict[str, str], monkeypatch: pytest.MonkeyPatch, config: dict[str, str], -): +): # pylint: disable=too-many-arguments, too-many-positional-arguments """ arrange: Given a charm with valid tls/gateway integration and mocked http_route resource manager returning 403 error. diff --git a/tests/unit/test_gateway.py b/tests/unit/test_gateway.py index ea9e0e8..2e3d22d 100644 --- a/tests/unit/test_gateway.py +++ b/tests/unit/test_gateway.py @@ -25,7 +25,7 @@ @pytest.mark.usefixtures("client_with_mock_external") -def test_create_gateway( # pylint: disable=too-many-arguments +def test_create_gateway( # pylint: disable=too-many-arguments, too-many-positional-arguments harness: Harness, certificates_relation_data: dict[str, str], gateway_relation_application_data: dict[str, str],