diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 8e59ea2c2..a0908bd78 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -1594,3 +1594,17 @@ def test_start_show_config(capsys): assert "Your combined configuration is:" in captured.out assert '"max_open_trades":' in captured.out assert '"secret": "REDACTED"' in captured.out + + args = [ + "show-config", + "--config", + "tests/testdata/testconfigs/main_test_config.json", + "--show-sensitive" + ] + pargs = get_args(args) + start_show_config(pargs) + + captured = capsys.readouterr() + assert "Your combined configuration is:" in captured.out + assert '"max_open_trades":' in captured.out + assert '"secret": "REDACTED"' not in captured.out