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 | 50bae2f6cfd7e899dff99af65e1acaef47084ac5 (patch) | |
tree | 0347bd6cd2aa8ca05eec6184cb787fc1c8c569b5 /tests/test_style.py | |
parent | Adding debian version 0.1.31. (diff) | |
download | debputy-50bae2f6cfd7e899dff99af65e1acaef47084ac5.tar.xz debputy-50bae2f6cfd7e899dff99af65e1acaef47084ac5.zip |
Merging upstream version 0.1.32.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_style.py')
-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: |