From d98fa4b82fec09421e5bb4d7f277db9b1919de8b Mon Sep 17 00:00:00 2001 From: Nikos Date: Wed, 19 Apr 2023 17:11:26 +0300 Subject: [PATCH] Fix linting --- src/charm.py | 1 + tests/integration/conftest.py | 5 ++++- tests/integration/test_charm.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/charm.py b/src/charm.py index 50dbf79c..ff2d221c 100755 --- a/src/charm.py +++ b/src/charm.py @@ -537,6 +537,7 @@ def _apply_network_policies(self, event: HookEvent) -> None: [ ("admin", [self.admin_ingress.relation]), ("public", [self.public_ingress.relation]), + (), ] ) except NetworkPoliciesHandlerError: diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index 9637d261..b9673490 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -1,7 +1,10 @@ +#!/usr/bin/env python3 +# Copyright 2022 Canonical Ltd. + import os -from lightkube import Client, KubeConfig import pytest +from lightkube import Client, KubeConfig KUBECONFIG = os.environ.get("TESTING_KUBECONFIG", "~/.kube/config") diff --git a/tests/integration/test_charm.py b/tests/integration/test_charm.py index 49276413..72869465 100644 --- a/tests/integration/test_charm.py +++ b/tests/integration/test_charm.py @@ -9,9 +9,9 @@ import pytest import requests import yaml -from pytest_operator.plugin import OpsTest from lightkube import Client from lightkube.resources.networking_v1 import NetworkPolicy +from pytest_operator.plugin import OpsTest logger = logging.getLogger(__name__)