File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def list() -> None:
29
29
table .add_column ("Description" , overflow = "fold" )
30
30
31
31
for option in container .cli_config_manager .all_options :
32
- value = option .get_value (default = "<not set>" )
32
+ value = str ( option .get_value (default = "<not set>" ) )
33
33
34
34
# Mask values of sensitive options
35
35
if value != "<not set>" and option .is_sensitive :
Original file line number Diff line number Diff line change @@ -46,3 +46,11 @@ def test_config_list_does_not_show_complete_values_of_sensitive_options(size) ->
46
46
47
47
assert "123" not in result .output
48
48
assert "abcdefghijklmnopqrstuvwxyz" not in result .output
49
+
50
+
51
+ def test_handles_non_string_sensitive_configs () -> None :
52
+ container .cli_config_manager .user_id .set_value (123 )
53
+
54
+ result = CliRunner ().invoke (lean , ["config" , "list" ])
55
+
56
+ assert result .exit_code == 0
You can’t perform that action at this time.
0 commit comments