summaryrefslogtreecommitdiffstats
path: root/tests/test_fs_metadata.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:47 +0000
commit03a1bd448be99d872d663a57a1cf4492882e090d (patch)
treec3d23691aa4dfdba89856bde05707a9a8e16abab /tests/test_fs_metadata.py
parentAdding upstream version 0.1.28. (diff)
downloaddebputy-03a1bd448be99d872d663a57a1cf4492882e090d.tar.xz
debputy-03a1bd448be99d872d663a57a1cf4492882e090d.zip
Adding upstream version 0.1.29.upstream/0.1.29
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_fs_metadata.py')
-rw-r--r--tests/test_fs_metadata.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_fs_metadata.py b/tests/test_fs_metadata.py
index 14a397f..f32afb0 100644
--- a/tests/test_fs_metadata.py
+++ b/tests/test_fs_metadata.py
@@ -1,11 +1,13 @@
import dataclasses
import textwrap
-from typing import Tuple, List, Optional, Union
+from typing import Tuple, List, Optional, Union, Sequence
import pytest
from debputy.filesystem_scan import PathDef, build_virtual_fs
-from debputy.highlevel_manifest_parser import YAMLManifestParser
+from debputy.highlevel_manifest_parser import (
+ YAMLManifestParser,
+)
from debputy.intermediate_manifest import PathType, IntermediateManifest, TarMember
from debputy.plugin.api import virtual_path_def
from debputy.plugin.api.test_api import build_virtual_file_system
@@ -57,7 +59,7 @@ def _has_fs_path(tm: TarMember) -> bool:
def verify_paths(
intermediate_manifest: IntermediateManifest,
- expected_results: List[Tuple[Union[str, PathDef], Expected]],
+ expected_results: Sequence[Tuple[Union[str, PathDef], Expected]],
) -> None:
result = {tm.member_path: tm for tm in intermediate_manifest}
expected_table = {
@@ -89,7 +91,9 @@ def verify_paths(
assert tm.member_path in expected_table
-def test_mtime_clamp_and_builtin_dir_mode(manifest_parser_pkg_foo):
+def test_mtime_clamp_and_builtin_dir_mode(
+ manifest_parser_pkg_foo: YAMLManifestParser,
+) -> None:
manifest = manifest_parser_pkg_foo.build_manifest()
claim_mtime_to = 255
path_defs: List[Tuple[PathDef, Expected]] = [