Improve boolean warning message.
Including examples of more boolean types, eg yes/N as it's not always immediately clear that they are treated as booleans. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
This commit is contained in:
parent
627f1acdc4
commit
8efc39e616
2 changed files with 3 additions and 3 deletions
|
|
@ -319,7 +319,7 @@ class ConfigTest(unittest.TestCase):
|
|||
|
||||
@mock.patch('compose.config.validation.log')
|
||||
def test_logs_warning_for_boolean_in_environment(self, mock_logging):
|
||||
expected_warning_msg = "Warning: There is a boolean value, True in the 'environment' key."
|
||||
expected_warning_msg = "Warning: There is a boolean value in the 'environment' key."
|
||||
config.load(
|
||||
build_config_details(
|
||||
{'web': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue