Skip to content

Commit a8a0d31

Browse files
committed
squash: post-rebase
1 parent 467cdae commit a8a0d31

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

tests/unit/test_filesystem.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import stat
44
import subprocess
55
import time
6-
from typing import Any, Generator, Optional, cast
6+
from collections.abc import Generator
7+
from typing import Optional, cast
78
from unittest import mock
89
from unittest.mock import MagicMock
910

@@ -69,7 +70,9 @@ def fixture_copy_tree_paths(tmppath: Path) -> CopyTreePathConfig:
6970
@pytest.fixture(name="tmpdir_creator")
7071
def fixture_tmpdir_creator(tmppath: Path) -> tmt.utils.filesystem.TmpDirCreator:
7172
@contextlib.contextmanager
72-
def _tmpdir_creator(prefix: Optional[str] = None, suffix: Optional[str] = None) -> Generator[Path, None, None]:
73+
def _tmpdir_creator(
74+
prefix: Optional[str] = None, suffix: Optional[str] = None
75+
) -> Generator[Path, None, None]:
7376
yield tmppath
7477

7578
return _tmpdir_creator
@@ -159,7 +162,10 @@ def test_copy_tree_basic(
159162

160163
@pytest.mark.parametrize('strategy', _STRATEGIES)
161164
def test_copy_empty_source_directory(
162-
strategy: tmt.utils.filesystem.CopyStrategy, tmpdir_creator: tmt.utils.filesystem.TmpDirCreator, tmppath: Path, root_logger: tmt.log.Logger
165+
strategy: tmt.utils.filesystem.CopyStrategy,
166+
tmpdir_creator: tmt.utils.filesystem.TmpDirCreator,
167+
tmppath: Path,
168+
root_logger: tmt.log.Logger,
163169
) -> None:
164170
"""
165171
Test copying an empty source directory.
@@ -179,7 +185,10 @@ def test_copy_empty_source_directory(
179185

180186
@pytest.mark.parametrize('strategy', _STRATEGIES)
181187
def test_deeply_nested_directories(
182-
strategy: tmt.utils.filesystem.CopyStrategy, tmpdir_creator: tmt.utils.filesystem.TmpDirCreator, tmppath: Path, root_logger: tmt.log.Logger
188+
strategy: tmt.utils.filesystem.CopyStrategy,
189+
tmpdir_creator: tmt.utils.filesystem.TmpDirCreator,
190+
tmppath: Path,
191+
root_logger: tmt.log.Logger,
183192
) -> None:
184193
"""Test copying deeply nested directory structures."""
185194
deep_src = tmppath / "deep_src"

0 commit comments

Comments
 (0)