From 8a59b7b92a5336d0de481b6a35d15817808dfa7c Mon Sep 17 00:00:00 2001 From: Javier de la Puente Date: Thu, 30 Jan 2025 17:43:12 +0100 Subject: [PATCH] fix linting --- tests/integration/test_charm_fork_path_change.py | 2 +- tests/integration/test_runner_manager_openstack.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_charm_fork_path_change.py b/tests/integration/test_charm_fork_path_change.py index fadc233d..10860735 100644 --- a/tests/integration/test_charm_fork_path_change.py +++ b/tests/integration/test_charm_fork_path_change.py @@ -66,7 +66,7 @@ async def test_path_config_change( runner_names = await instance_helper.get_runner_names(unit) logger.info("runners: %s", runner_names) assert len(runner_names) == 1 - #this will crash if there is not exactly one + # this will crash if there is not exactly one logger.info("runner info: %s", instance_helper._get_single_runner(unit)) runner_name = runner_names[0] diff --git a/tests/integration/test_runner_manager_openstack.py b/tests/integration/test_runner_manager_openstack.py index 3139a576..70841854 100644 --- a/tests/integration/test_runner_manager_openstack.py +++ b/tests/integration/test_runner_manager_openstack.py @@ -31,8 +31,7 @@ RunnerManagerConfig, ) from github_runner_manager.metrics import events -from github_runner_manager.openstack_cloud import health_checks -from github_runner_manager.openstack_cloud import constants +from github_runner_manager.openstack_cloud import constants, health_checks from github_runner_manager.openstack_cloud.openstack_runner_manager import ( OpenStackCredentials, OpenStackRunnerManager, @@ -53,6 +52,7 @@ logger = logging.getLogger(__name__) constants.CREATE_SERVER_TIMEOUT = 900 + @pytest.fixture(scope="module", name="runner_label") def runner_label(): return f"test-{token_hex(6)}"