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 | 7f62bd7daeb1c8e6d879b9e607474b457ea71aca (patch) | |
tree | 40de464ce4041327045d31b7c54d3b069309107a /tests/test_parser.py | |
parent | Adding debian version 0.1.24. (diff) | |
download | debputy-7f62bd7daeb1c8e6d879b9e607474b457ea71aca.tar.xz debputy-7f62bd7daeb1c8e6d879b9e607474b457ea71aca.zip |
Merging upstream version 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( |