mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-24 14:46:42 +02:00
tests: Provide more details when regex search fails
This commit is contained in:
parent
0c7b5a0494
commit
eff9d2164c
1 changed files with 2 additions and 1 deletions
|
@ -117,7 +117,8 @@ class IntegrationTest(object):
|
|||
|
||||
# Multiline-evaluate the regex
|
||||
if regex:
|
||||
assert re.search(regex, result, re.MULTILINE)
|
||||
details = u"Regex not found in: {0}".format(result)
|
||||
assert re.search(regex, result, re.MULTILINE), details
|
||||
|
||||
if lines:
|
||||
assert lines == len(result.splitlines())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue