From ee65fb850961435a3c8ed89ffb20d16f0e8505a3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 22:16:53 +0200 Subject: Adding upstream version 0.1.25. Signed-off-by: Daniel Baumann --- tests/test_parser.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/test_parser.py') 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( -- cgit v1.2.3