Skip to content

Commit

Permalink
test: add test for team maintainers
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr committed Oct 14, 2024
1 parent ab22a7d commit faafdb2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test_lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit faafdb2

Please sign in to comment.