summaryrefslogtreecommitdiffstats
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 20:16:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 20:16:54 +0000
commit7a7c8ddc4a4432907f433fdef3f0a233c790780f (patch)
tree96bd397d86308e4875e7764cdf4f98dfc7433481 /tests/test_parser.py
parentReleasing progress-linux version 0.1.24-0.0~progress7.99u1. (diff)
downloaddebputy-7a7c8ddc4a4432907f433fdef3f0a233c790780f.tar.xz
debputy-7a7c8ddc4a4432907f433fdef3f0a233c790780f.zip
Merging upstream version 0.1.25.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index bc041fc..4792842 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -58,6 +58,20 @@ def test_parsing_version_only(manifest_parser_pkg_foo):
assert [p.name for p in manifest.active_packages] == ["foo"]
+def test_parsing_empty_installations(manifest_parser_pkg_foo):
+ content = textwrap.dedent(
+ """\
+ manifest-version: '0.1'
+ installations: []
+ """
+ )
+
+ manifest = manifest_parser_pkg_foo.parse_manifest(fd=content)
+
+ assert [p.name for p in manifest.all_packages] == ["foo"]
+ assert [p.name for p in manifest.active_packages] == ["foo"]
+
+
def test_parsing_variables(manifest_parser_pkg_foo):
# https://salsa.debian.org/debian/debputy/-/issues/58
content = textwrap.dedent(