We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you have a nested key and also have a default value, you will always get the default value.
For the given test:
def test_get_yaml_nested_default(): g = gestalt.Gestalt() g.add_config_path("./tests/testdata") g.build_config() testval = g.get_string("deep_yaml.nest1.nest2.foo", 'default') assert testval == "hello"
the test will fail:
===================================================== FAILURES ====================================================== ___________________________________________ test_get_yaml_nested_default ____________________________________________ def test_get_yaml_nested_default(): g = gestalt.Gestalt() g.add_config_path("./tests/testdata") g.build_config() testval = g.get_string("deep_yaml.nest1.nest2.foo", 'default') > assert testval == "hello" E AssertionError: assert 'default' == 'hello' E - hello E + default tests/test_gestalt.py:249: AssertionError
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When you have a nested key and also have a default value, you will always get the default value.
For the given test:
the test will fail:
The text was updated successfully, but these errors were encountered: