diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-01 11:53:56 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-01 11:53:56 -0500 |
| commit | b1c23487c33fc2ad5503b6340b17980a326918c8 (patch) | |
| tree | db8fa8f1147ddcdd0df072431cfdb37e24976a1c /tests/test_json_parser.py | |
| parent | Add '-E yaml -E toml' to install instructions (diff) | |
| download | config-file-b1c23487c33fc2ad5503b6340b17980a326918c8.zip | |
Lint files
Diffstat (limited to 'tests/test_json_parser.py')
| -rw-r--r-- | tests/test_json_parser.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_json_parser.py b/tests/test_json_parser.py index 514a640..f8200b0 100644 --- a/tests/test_json_parser.py +++ b/tests/test_json_parser.py @@ -1,9 +1,6 @@ -import json - import pytest from config_file.exceptions import ParsingError -from config_file.parsers.json_parser import JsonParser def test_invalid_json(templated_parser): @@ -45,8 +42,8 @@ def test_that_json_parser_can_find_wild_keys(key, templated_parser): [ "glossary", "glossary.title", - "glossary.GlossDiv.GlossList.GlossEntry.GlossDef.para" - ] + "glossary.GlossDiv.GlossList.GlossEntry.GlossDef.para", + ], ) def test_that_json_parser_can_find_dot_keys(key, templated_parser): parser = templated_parser("json", "glossary") @@ -98,7 +95,11 @@ def test_that_json_parser_can_set_keys(templated_parser, key, value): @pytest.mark.parametrize( "key", - ["glossary", "glossary.dict_within_dict", "glossary.GlossDiv.GlossList.GlossEntry.Abbrev"], + [ + "glossary", + "glossary.dict_within_dict", + "glossary.GlossDiv.GlossList.GlossEntry.Abbrev", + ], ) def test_that_json_parser_can_delete_keys(template_and_parser, key): template, parser = template_and_parser("json", "glossary") |