summaryrefslogtreecommitdiffstats
path: root/tests/test_migrations.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:48 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:48 +0000
commit6dba7fe33f3f508033d1192ef4dbf98707f24140 (patch)
treed84b5b1ebca79975ae2a30f22c91c7964182c223 /tests/test_migrations.py
parentAdding debian version 0.1.28. (diff)
downloaddebputy-6dba7fe33f3f508033d1192ef4dbf98707f24140.tar.xz
debputy-6dba7fe33f3f508033d1192ef4dbf98707f24140.zip
Merging upstream version 0.1.29.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_migrations.py')
-rw-r--r--tests/test_migrations.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_migrations.py b/tests/test_migrations.py
index cbf3f79..9d43549 100644
--- a/tests/test_migrations.py
+++ b/tests/test_migrations.py
@@ -119,8 +119,10 @@ def _assert_unsupported_feature(
def _write_manifest(manifest: HighLevelManifest) -> str:
+ mutable_manifest = manifest.mutable_manifest
+ assert mutable_manifest is not None
with io.StringIO() as fd:
- manifest.mutable_manifest.write_to(fd)
+ mutable_manifest.write_to(fd)
return fd.getvalue()
@@ -134,7 +136,7 @@ def _verify_migrator_generates_parsable_manifest(
expected_warnings: Optional[List[str]] = None,
expected_renamed_paths: Optional[List[Tuple[str, str]]] = None,
expected_removals: Optional[List[str]] = None,
- required_plugins: Optional[Sequence[str]] = tuple(),
+ required_plugins: Sequence[str] = tuple(),
dh_config_mode: Optional[int] = None,
) -> None:
# No file, no changes