From faafdb2a22a59c1e7ae774692106ee4a3b85357b Mon Sep 17 00:00:00 2001 From: beckermr Date: Mon, 14 Oct 2024 06:40:00 -0500 Subject: [PATCH] test: add test for team maintainers --- tests/test_lint_recipe.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/test_lint_recipe.py b/tests/test_lint_recipe.py index b4b644694..b63d092ca 100644 --- a/tests/test_lint_recipe.py +++ b/tests/test_lint_recipe.py @@ -1871,6 +1871,29 @@ def test_maintainer_exists(self): expected_message = 'Recipe maintainer "isuruf" does not exist' self.assertNotIn(expected_message, lints) + def test_maintainer_team_exists(self): + lints, _ = linter.lintify_meta_yaml( + { + "extra": { + "recipe-maintainers": [ + "conda-forge/blahblahblah-foobarblah" + ] + } + }, + conda_forge=True, + ) + expected_message = 'Recipe maintainer "conda-forge/blahblahblah-foobarblah" does not exist' + self.assertIn(expected_message, lints) + + lints, _ = linter.lintify_meta_yaml( + {"extra": {"recipe-maintainers": ["conda-forge/core"]}}, + conda_forge=True, + ) + expected_message = ( + 'Recipe maintainer "conda-forge/core" does not exist' + ) + self.assertNotIn(expected_message, lints) + def test_bad_subheader(self): expected_message = ( "The {} section contained an unexpected "