mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Issue legacy path warnings to stderr
To make it possible to ignore the warning e.g. when running yadm introspect repo in the bash completion.
This commit is contained in:
parent
df2ff5ec70
commit
5e9c5cf66c
@ -34,8 +34,8 @@ def test_legacy_warning(tmpdir, runner, yadm, upgrade, override, legacy_path):
|
|||||||
"""
|
"""
|
||||||
run = runner(command=['bash'], inp=script)
|
run = runner(command=['bash'], inp=script)
|
||||||
assert run.success
|
assert run.success
|
||||||
assert run.err == ''
|
assert run.out == ''
|
||||||
if legacy_path and (not upgrade) and (not override):
|
if legacy_path and (not upgrade) and (not override):
|
||||||
assert 'Legacy paths have been detected' in run.out
|
assert 'Legacy paths have been detected' in run.err
|
||||||
else:
|
else:
|
||||||
assert 'Legacy paths have been detected' not in run.out
|
assert 'Legacy paths have been detected' not in run.err
|
||||||
|
Loading…
Reference in New Issue
Block a user