Remove wrong typing

This commit is contained in:
Ayaz Salikhov
2022-01-18 20:02:25 +03:00
parent e83abc9c50
commit f458a5aba0

View File

@@ -3,8 +3,6 @@
import docker import docker
import logging import logging
from conftest import TrackedContainer
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
@@ -38,9 +36,7 @@ class DockerRunner:
LOGGER.info(f"Container {self.container.name} removed") LOGGER.info(f"Container {self.container.name} removed")
@staticmethod @staticmethod
def run_simple_command( def run_simple_command(container, cmd: str, print_result: bool = True):
container: TrackedContainer, cmd: str, print_result: bool = True
):
LOGGER.info(f"Running cmd: '{cmd}' on container: {container}") LOGGER.info(f"Running cmd: '{cmd}' on container: {container}")
out = container.exec_run(cmd) out = container.exec_run(cmd)
result = out.output.decode("utf-8").rstrip() result = out.output.decode("utf-8").rstrip()