Skip to content

Commit

Permalink
Test that merge commits of PRs are being linted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Sep 12, 2016
1 parent bfb5cc6 commit 5ffbe33
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 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,17 @@ 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(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_conflict_ok_recipe(self):
expected_message = textwrap.dedent("""
Hi! This is the friendly automated conda-forge-linting service.
Expand Down

0 comments on commit 5ffbe33

Please sign in to comment.