summaryrefslogtreecommitdiffstats
path: root/tests/test_migrations.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:23:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-26 10:23:10 +0000
commit401def0241bce74e3e093ea9dac16d141d818d43 (patch)
treef004a9eb89e1cd971db91d5409448f04598d3ed6 /tests/test_migrations.py
parentAdding upstream version 0.1.46. (diff)
downloaddebputy-401def0241bce74e3e093ea9dac16d141d818d43.tar.xz
debputy-401def0241bce74e3e093ea9dac16d141d818d43.zip
Adding upstream version 0.1.47.upstream/0.1.47
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_migrations.py')
-rw-r--r--tests/test_migrations.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_migrations.py b/tests/test_migrations.py
index b179cab..0704c60 100644
--- a/tests/test_migrations.py
+++ b/tests/test_migrations.py
@@ -4,6 +4,7 @@ from typing import Callable, Optional, List, Tuple, Sequence
import pytest
+from debputy.commands.debputy_cmd.output import no_fancy_output
from debputy.dh_migration.migrators import Migrator
from debputy.dh_migration.migrators_impl import (
migrate_tmpfile,
@@ -99,7 +100,7 @@ def run_migrator(
*,
migration_target=INTEGRATION_MODE_DH_DEBPUTY,
) -> FeatureMigration:
- feature_migration = FeatureMigration(migrator.__name__)
+ feature_migration = FeatureMigration(migrator.__name__, no_fancy_output())
migrator(
path,
manifest,
@@ -1308,7 +1309,7 @@ def test_detect_obsolete_substvars(
)
msg = (
"The following relationship substitution variables can be removed from foo:"
- " ${misc:Depends}, ${shlibs:Depends}, ${so:Depends}"
+ " ${misc:Depends}, ${shlibs:Depends}, ${so:Depends} (Note: https://bugs.debian.org/1067653)"
)
assert migration.anything_to_do
assert migration.warnings == [msg]
@@ -1356,7 +1357,7 @@ def test_detect_obsolete_substvars_remove_field(
)
msg = (
"The following relationship fields can be removed from foo: Pre-Depends."
- " (The content in them would be applied automatically.)"
+ " (The content in them would be applied automatically. Note: https://bugs.debian.org/1067653)"
)
assert migration.anything_to_do
assert migration.warnings == [msg]
@@ -1406,7 +1407,7 @@ def test_detect_obsolete_substvars_remove_field_essential(
)
msg = (
"The following relationship fields can be removed from foo: Pre-Depends."
- " (The content in them would be applied automatically.)"
+ " (The content in them would be applied automatically. Note: https://bugs.debian.org/1067653)"
)
assert migration.anything_to_do
assert migration.warnings == [msg]