Skip to content

Commit

Permalink
refactor(reporter): match additional negation assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Apr 28, 2017
1 parent 9f1d2cc commit 6fd7ec4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grappa/reporters/code.py
Expand Up @@ -37,7 +37,8 @@ class CodeReporter(BaseReporter):

# Context manager based assertions that does not imply new test calls.
CONTEXT_EXPR = re.compile(
r'[\.](not)?[\_]?(have|has|be|to|that|satisfy|which|include)[\.]')
r'[\.](not)?[\_]?(have|has|be|to|that|'
r'satisfy|which|include)[\_]?(not)?[\.]')

def match_line(self, line):
return any([
Expand Down

0 comments on commit 6fd7ec4

Please sign in to comment.