mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
tests: Report details about failed assertions in tests.base
This commit is contained in:
parent
1cb822455c
commit
3edeef5960
2 changed files with 9 additions and 1 deletions
|
@ -114,7 +114,10 @@ class IntegrationTest(object):
|
|||
|
||||
# For silent commands, there should be no output
|
||||
if silent is not None:
|
||||
assert silent == bool(not result)
|
||||
if silent:
|
||||
assert not result
|
||||
else:
|
||||
assert result
|
||||
|
||||
# Multiline-evaluate the regex
|
||||
if regex:
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
import pytest
|
||||
import re
|
||||
|
||||
|
||||
# enable assertion introspection for the common code in tests.base
|
||||
pytest.register_assert_rewrite('tests.base')
|
||||
|
||||
|
||||
markup_headers = {
|
||||
'default': {
|
||||
'HEADER1': "= %s =",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue