aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_ini_parser.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-08-06 09:47:35 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-08-06 09:47:35 -0500
commit836cefe45633331d0e5692295174bf3181a5e365 (patch)
tree8602b312e67cc591f33022f56221ca7434cfe33f /tests/test_ini_parser.py
parentUpdate README example to remove MissingKeyError (diff)
downloadconfig-file-836cefe45633331d0e5692295174bf3181a5e365.zip
Change MissingKeyErrors to KeyError
Diffstat (limited to 'tests/test_ini_parser.py')
-rw-r--r--tests/test_ini_parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ini_parser.py b/tests/test_ini_parser.py
index 24507b7..2accc8f 100644
--- a/tests/test_ini_parser.py
+++ b/tests/test_ini_parser.py
@@ -1,6 +1,6 @@
import pytest
-from config_file.exceptions import MissingKeyError, ParsingError
+from config_file.exceptions import ParsingError
from config_file.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_missing_key_errors(section_key):
+def test_that_ini_parser_delete_raises_key_error(section_key):
ini_file = """[test_section]\nkey1 = value\n\n"""
parser = IniParser(ini_file)
- with pytest.raises(MissingKeyError):
+ with pytest.raises(KeyError):
parser.delete(section_key)