From 6dc4fa9dbffaa6610e826e162032ffe622c630ae Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 20 Mar 2024 07:07:00 +0100 Subject: [PATCH] Add test for show-sensitive --- tests/commands/test_commands.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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