diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:16:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 20:16:53 +0000 |
commit | ee65fb850961435a3c8ed89ffb20d16f0e8505a3 (patch) | |
tree | 1fe559c0b1c6a2244e0e87e94c1d98222fa02e8c /tests/test_parser.py | |
parent | Adding upstream version 0.1.24. (diff) | |
download | debputy-ee65fb850961435a3c8ed89ffb20d16f0e8505a3.tar.xz debputy-ee65fb850961435a3c8ed89ffb20d16f0e8505a3.zip |
Adding upstream version 0.1.25.upstream/0.1.25
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/test_parser.py | 14 |
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( |