Skip to content

Commit

Permalink
Test that changes from recipes in the base branch are being linted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Sep 13, 2016
1 parent 7250b3a commit 048a003
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions conda_forge_webservices/tests/linting/test_compute_lint_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@ def test_good_recipe(self):
lint = compute_lint_message('conda-forge', 'conda-forge-webservices', 16)
self.assertMultiLineEqual(expected_message, lint['message'])

def test_ok_recipe_above_good_recipe(self):
expected_message = textwrap.dedent("""
Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (```recipes/good_recipe```, ```recipes/ok_recipe```) and found it was in an excellent condition.
""")

lint = compute_lint_message('conda-forge', 'conda-forge-webservices', 54)
self.assertMultiLineEqual(expected_message, lint['message'])

def test_ok_recipe_beside_good_recipe(self):
expected_message = textwrap.dedent("""
Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (```recipes/good_recipe```, ```recipes/ok_recipe```) and found it was in an excellent condition.
""")

lint = compute_lint_message('conda-forge', 'conda-forge-webservices', 62)
self.assertMultiLineEqual(expected_message, lint['message'])

def test_conflict_ok_recipe(self):
expected_message = textwrap.dedent("""
Hi! This is the friendly automated conda-forge-linting service.
Expand Down

0 comments on commit 048a003

Please sign in to comment.