From c1f779521c0f8ad8cf5bf8a830e04dff47ecd290 Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Wed, 4 Dec 2019 08:43:22 -0600 Subject: [PATCH] Confirm LEGACY_WARNING_ISSUED is set appropriately --- test/test_unit_issue_legacy_path_warning.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_unit_issue_legacy_path_warning.py b/test/test_unit_issue_legacy_path_warning.py index c14857b..3f5cd6f 100644 --- a/test/test_unit_issue_legacy_path_warning.py +++ b/test/test_unit_issue_legacy_path_warning.py @@ -29,11 +29,13 @@ def test_legacy_warning(tmpdir, runner, yadm, upgrade, legacy_path): YADM_TEST=1 source {yadm} {main_args} issue_legacy_path_warning + echo "LWI:$LEGACY_WARNING_ISSUED" """ run = runner(command=['bash'], inp=script) assert run.success assert run.err == '' if legacy_path and not upgrade: assert 'Legacy configuration paths have been detected' in run.out + assert 'LWI:1' in run.out else: - assert run.out.rstrip() == '' + assert run.out.rstrip() == 'LWI:0'