Commit 7248c2ec by Arun Babu Neelicattu

tests: improve coverage for install group options

Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
parent f9c54c6c
...@@ -63,10 +63,8 @@ def tester( ...@@ -63,10 +63,8 @@ def tester(
@pytest.mark.parametrize( @pytest.mark.parametrize(
("options", "groups", "with_root"), ("options", "groups"),
[ [
case + (with_root,)
for case in [
("", {"default", "foo", "bar", "baz", "bim"}), ("", {"default", "foo", "bar", "baz", "bim"}),
("--only default", {"default"}), ("--only default", {"default"}),
("--only foo", {"foo"}), ("--only foo", {"foo"}),
...@@ -74,11 +72,20 @@ def tester( ...@@ -74,11 +72,20 @@ def tester(
("--only bam", {"bam"}), ("--only bam", {"bam"}),
("--with bam", {"default", "foo", "bar", "baz", "bim", "bam"}), ("--with bam", {"default", "foo", "bar", "baz", "bim", "bam"}),
("--without foo,bar", {"default", "baz", "bim"}), ("--without foo,bar", {"default", "baz", "bim"}),
("--without default", {"foo", "bar", "baz", "bim"}),
("--with foo,bar --without baz --without bim --only bam", {"bam"}), ("--with foo,bar --without baz --without bim --only bam", {"bam"}),
] # net result zero options
for with_root in {True, False} ("--with foo", {"default", "foo", "bar", "baz", "bim"}),
("--without bam", {"default", "foo", "bar", "baz", "bim"}),
("--with bam --without bam", {"default", "foo", "bar", "baz", "bim"}),
("--with foo --without foo", {"default", "bar", "baz", "bim"}),
# deprecated options
("--default", {"default"}),
("--no-dev", {"default"}),
("--dev-only", {"foo", "bar", "baz", "bim"}),
], ],
) )
@pytest.mark.parametrize("with_root", [True, False])
def test_group_options_are_passed_to_the_installer( def test_group_options_are_passed_to_the_installer(
options: str, options: str,
groups: set[str], groups: set[str],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment