Skip to content

Commit 6bc1d97

Browse files
committed
flake8 fixes
1 parent 7ac66a3 commit 6bc1d97

4 files changed

Lines changed: 3 additions & 6 deletions

File tree

shells/generic_terraform_service/src/driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from cloudshell.shell.core.driver_context import ResourceCommandContext
12
from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface
23
from cloudshell.shell.core.session.logging_session import LoggingSessionContext
34

shells/generic_terraform_service/tests/integration_tests/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from cloudshell.api.cloudshell_api import ResourceAttribute
2-
31
SHELL_NAME = "Generic Terraform Service"
42
UUID_ATTRIBUTE = f"{SHELL_NAME}.UUID"
53

shells/generic_terraform_service/tests/integration_tests/helper_objects/integration_context.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from unittest import mock
22
from unittest.mock import Mock
33

4-
from cloudshell.api.cloudshell_api import CloudShellAPISession, AttributeValueInfo
4+
from cloudshell.api.cloudshell_api import CloudShellAPISession
55
from cloudshell.iac.terraform import TerraformShell, TerraformShellConfig
66
from cloudshell.logging.qs_logger import get_qs_logger
77
from cloudshell.shell.core.driver_context import ResourceCommandContext
@@ -29,7 +29,6 @@ def __init__(self, service_name: str, is_api_real: bool = True, mock_api: Mock =
2929
self._logger = get_qs_logger(log_group=self.context.resource.name)
3030
self.create_tf_shell()
3131

32-
3332
def _set_context(self, is_api_real: bool):
3433
self.context = mock.create_autospec(ResourceCommandContext)
3534
self.context.connectivity = mock.MagicMock()
@@ -63,4 +62,3 @@ def set_context_resource_attributes_from_cs(self, the_only_attribute_to_update:
6362
def create_tf_shell(self):
6463
self._config = TerraformShellConfig(write_sandbox_messages=True, update_live_status=True)
6564
self.tf_shell = TerraformShell(self.context, self._logger, self._config)
66-

shells/generic_terraform_service/tests/integration_tests/int_test_mock_tf_execute_destroy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def run_execute(self, pre_exec_function: Callable, integration_data: Integration
5858
self.pre_exec_prep(pre_exec_function, integration_data)
5959
integration_data.tf_shell.execute_terraform()
6060

61-
def run_destroy(self,pre_destroy_function: Callable, integration_data: IntegrationData):
61+
def run_destroy(self, pre_destroy_function: Callable, integration_data: IntegrationData):
6262
self.pre_destroy_prep(pre_destroy_function, integration_data)
6363
integration_data.tf_shell.destroy_terraform()
6464

0 commit comments

Comments
 (0)