From 649b25a1fc589c94b7192628ee5e53d410fbc0bd Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 2 Oct 2024 18:57:40 +0300 Subject: [PATCH] FIXU: Lint --- dangerzone/isolation_provider/dummy.py | 5 ++--- tests/test_cli.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dangerzone/isolation_provider/dummy.py b/dangerzone/isolation_provider/dummy.py index 17409fabf..7aa1e12e4 100644 --- a/dangerzone/isolation_provider/dummy.py +++ b/dangerzone/isolation_provider/dummy.py @@ -6,7 +6,6 @@ import time from typing import Callable, Optional -from ..document import Document from ..conversion.common import DangerzoneConverter from ..document import Document from ..util import get_resource_path @@ -51,14 +50,14 @@ def start_doc_to_pixels_proc(self, document: Document) -> subprocess.Popen: "python3", "-c", "from dangerzone.isolation_provider.dummy import dummy_script;" - " dummy_script()" + " dummy_script()", ] return subprocess.Popen( cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=self.proc_stderr, - start_new_session=True + start_new_session=True, ) def terminate_doc_to_pixels_proc( diff --git a/tests/test_cli.py b/tests/test_cli.py index 23412a0b4..df4fe676f 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -9,11 +9,11 @@ import tempfile import traceback from pathlib import Path -from pytest_mock import MockerFixture from typing import Optional, Sequence import pytest from click.testing import CliRunner, Result +from pytest_mock import MockerFixture from strip_ansi import strip_ansi from dangerzone.cli import cli_main, display_banner