aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_ini_parser.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-07-29 21:27:18 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-07-29 21:27:18 -0500
commitdf90fd036d004c79f340e4c1d01b2171add80047 (patch)
tree0023a4bb091cbad6d4a80d9fda341ab0605e7b2e /tests/test_ini_parser.py
parentMove IniParserCompatibility to new file (diff)
downloadconfig-file-df90fd036d004c79f340e4c1d01b2171add80047.zip
Fix tests for recent changes
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 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)