diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-02-02 07:02:27 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-02-02 07:02:27 -0600 |
| commit | 99ef9872805366675f495a66594f3cd2aea68ac7 (patch) | |
| tree | 1a1b10b0379a2bb5d1c7264655f9cd7db62736db /tests/test_parse_value.py | |
| parent | Merge branch 'json' of github.com:eugenetriguba/config_file into json (diff) | |
| download | config-file-99ef9872805366675f495a66594f3cd2aea68ac7.zip | |
Finish get method for json parser
Diffstat (limited to 'tests/test_parse_value.py')
| -rw-r--r-- | tests/test_parse_value.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_parse_value.py b/tests/test_parse_value.py index 2123337..58d3f3c 100644 --- a/tests/test_parse_value.py +++ b/tests/test_parse_value.py @@ -17,6 +17,11 @@ from config_file.parsers.parse_value import can_be_parsed_as_bool, parse_value (343, 343), (3.2, 3.2), (True, True), + ({"blah": "5"}, {"blah": 5}), + ( + {"blah": {"blah2": {"blah3": "false"}, "abc": "5.25", "boo": "tRuE"}}, + {"blah": {"blah2": {"blah3": False}, "abc": 5.25, "boo": True}}, + ), ], ) def test_parse_value(test_input, expected): |