mirror of
https://github.com/vale981/releases
synced 2025-03-04 17:21:43 -05:00
Don't default to warn=True in integration test
This commit is contained in:
parent
73ee042925
commit
36456d2a53
1 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,7 @@ class integration(Spec):
|
|||
def teardown(self):
|
||||
os.chdir(self.cwd)
|
||||
|
||||
def _build(self, folder, opts, target, asserts=None, conf='.'):
|
||||
def _build(self, folder, opts, target, asserts=None, conf='.', warn=False):
|
||||
# Dynamic sphinx opt overrides
|
||||
if opts:
|
||||
pairs = map(lambda x: '='.join(x), (opts or {}).items())
|
||||
|
@ -27,7 +27,7 @@ class integration(Spec):
|
|||
# Build
|
||||
cmd = 'sphinx-build {} -c {} -W {} {}'.format(
|
||||
flagstr, conf, folder, build)
|
||||
result = run(cmd, warn=True, hide=True)
|
||||
result = run(cmd, warn=warn, hide=True)
|
||||
if callable(asserts):
|
||||
asserts(result, build, target)
|
||||
return result
|
||||
|
@ -81,6 +81,7 @@ class integration(Spec):
|
|||
folder='hidden_issues',
|
||||
opts=None,
|
||||
target='changelog',
|
||||
warn=True,
|
||||
)
|
||||
assert result.failed
|
||||
assert "ValueError" in result.stderr
|
||||
|
|
Loading…
Add table
Reference in a new issue