diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-01 08:57:17 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-01 08:57:17 -0500 |
| commit | ba655e72f74bc488cb8e5988766fef8f5dd45bcc (patch) | |
| tree | f967eb203b0a6e389022c5383a7eb23414059051 /tests/test_ini_parser.py | |
| parent | Add name to security workflow (diff) | |
| parent | Fix wording of docstring in missing dependency error (diff) | |
| download | config-file-ba655e72f74bc488cb8e5988766fef8f5dd45bcc.zip | |
Merge branch 'dev' into dev
Diffstat (limited to 'tests/test_ini_parser.py')
| -rw-r--r-- | tests/test_ini_parser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ini_parser.py b/tests/test_ini_parser.py index 6577291..45e82c3 100644 --- a/tests/test_ini_parser.py +++ b/tests/test_ini_parser.py @@ -1,6 +1,6 @@ import pytest -from config_file.exceptions import ParsingError +from config_file.exceptions import ParsingError, MissingKeyError from config_file.parsers.ini_parser import IniParser @@ -81,10 +81,10 @@ def test_that_ini_parser_can_delete(section_key, expected_result): @pytest.mark.parametrize( "section_key", ["section_is_not_present", "test_section.but_key_is_not_present"], ) -def test_that_ini_parser_delete_raises_value_errors(section_key): +def test_that_ini_parser_delete_raises_missing_key_errors(section_key): ini_file = """[test_section]\nkey1 = value\n\n""" parser = IniParser(ini_file) - with pytest.raises(ValueError): + with pytest.raises(MissingKeyError): parser.delete(section_key) |