diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-07 04:46:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-07 04:46:50 +0000 |
commit | a4982d199325739b87d94f3a14977df8971090d7 (patch) | |
tree | 6d6ff4c7cb4669d87c34f48f3f97d29297fa0758 /tests/test_style.py | |
parent | Adding upstream version 0.1.31. (diff) | |
download | debputy-a4982d199325739b87d94f3a14977df8971090d7.tar.xz debputy-a4982d199325739b87d94f3a14977df8971090d7.zip |
Adding upstream version 0.1.32.upstream/0.1.32
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/test_style.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/test_style.py b/tests/test_style.py index cae4510..0e3f5d7 100644 --- a/tests/test_style.py +++ b/tests/test_style.py @@ -71,7 +71,7 @@ def test_compat_styles() -> None: ) src = SourcePackage(fields) - effective_style = determine_effective_style(styles, src, None) + effective_style, _ = determine_effective_style(styles, src, None) assert effective_style == nt_pref fields["Uploaders"] = ( @@ -79,7 +79,7 @@ def test_compat_styles() -> None: ) src = SourcePackage(fields) - effective_style = determine_effective_style(styles, src, None) + effective_style, _ = determine_effective_style(styles, src, None) assert effective_style == nt_pref assert effective_style == zeha_pref @@ -88,7 +88,7 @@ def test_compat_styles() -> None: ) src = SourcePackage(fields) - effective_style = determine_effective_style(styles, src, None) + effective_style, _ = determine_effective_style(styles, src, None) assert effective_style is None @@ -108,7 +108,7 @@ def test_compat_styles_team_maint() -> None: assert "random@example.org" not in styles.maintainer_preferences team_style = styles.maintainer_preferences["team@lists.debian.org"] assert team_style.is_packaging_team - effective_style = determine_effective_style(styles, src, None) + effective_style, _ = determine_effective_style(styles, src, None) assert effective_style == team_style.as_effective_pref() @@ -125,7 +125,7 @@ def test_x_style() -> None: assert "random@example.org" not in styles.maintainer_preferences assert "black" in styles.named_styles black_style = styles.named_styles["black"] - effective_style = determine_effective_style(styles, src, None) + effective_style, _ = determine_effective_style(styles, src, None) assert effective_style == black_style @@ -139,18 +139,18 @@ def test_was_from_salsa_ci_style() -> None: ) src = SourcePackage(fields) assert "random@example.org" not in styles.maintainer_preferences - effective_style = determine_effective_style(styles, src, None) + effective_style, _ = determine_effective_style(styles, src, None) assert effective_style is None salsa_ci = CommentedMap( {"variables": CommentedMap({"SALSA_CI_DISABLE_WRAP_AND_SORT": "yes"})} ) - effective_style = determine_effective_style(styles, src, salsa_ci) + effective_style, _ = determine_effective_style(styles, src, salsa_ci) assert effective_style is None salsa_ci = CommentedMap( {"variables": CommentedMap({"SALSA_CI_DISABLE_WRAP_AND_SORT": "no"})} ) - effective_style = determine_effective_style(styles, src, salsa_ci) + effective_style, _ = determine_effective_style(styles, src, salsa_ci) was_style = EffectivePreference(**_WAS_DEFAULTS) assert effective_style == was_style @@ -218,7 +218,7 @@ def test_was_from_salsa_ci_style_args( ) } ) - effective_style = determine_effective_style(styles, src, salsa_ci) + effective_style, _ = determine_effective_style(styles, src, salsa_ci) if style_delta is None: assert effective_style is None else: |