aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-01-19 14:40:13 -0600
committerEugene Triguba <eugenetriguba@gmail.com>2020-01-19 14:40:13 -0600
commit9c8c6c1fc2ccf31bc8c709ab052c34a45e207b36 (patch)
tree54dcc521d4390880b89166deffbd5709d97b1e44 /tests
parentAdd section on using your own parser (diff)
downloadconfig-file-9c8c6c1fc2ccf31bc8c709ab052c34a45e207b36.zip
Add support for retrieving entire sections with get()
Diffstat (limited to 'tests')
-rw-r--r--tests/test_ini_parser.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_ini_parser.py b/tests/test_ini_parser.py
index da1b43e..7af3ea4 100644
--- a/tests/test_ini_parser.py
+++ b/tests/test_ini_parser.py
@@ -20,6 +20,16 @@ def test_incorrect_ini_formats(ini_file):
("test_section.strkey", "blah", False),
("test_section.boolkey", "false", False),
("test_section.floatkey", "5.3", False),
+ (
+ "test_section",
+ {"intkey": "5", "strkey": "blah", "boolkey": "false", "floatkey": "5.3"},
+ False,
+ ),
+ (
+ "test_section",
+ {"intkey": 5, "strkey": "blah", "boolkey": False, "floatkey": 5.3},
+ True,
+ ),
],
)
def test_that_ini_parser_can_get_values(section_key, expected_value, parse_type):