aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_ini_parser.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-08-05 20:39:28 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-08-05 20:39:28 -0500
commit59eeb1321fbad41dce7c971778e37ac1943fda3b (patch)
tree0ccb143e1094784e9b149977d6f0cabf6f6220b2 /tests/test_ini_parser.py
parentAdd ConfigFilePath to refactor out file specific code (diff)
downloadconfig-file-59eeb1321fbad41dce7c971778e37ac1943fda3b.zip
Redo package to have a flat package structure
By having a flat package structure like this, it'll avoid exposing packages and things we don't want to be exposed.
Diffstat (limited to 'tests/test_ini_parser.py')
-rw-r--r--tests/test_ini_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_ini_parser.py b/tests/test_ini_parser.py
index 46966c9..24507b7 100644
--- a/tests/test_ini_parser.py
+++ b/tests/test_ini_parser.py
@@ -1,7 +1,7 @@
import pytest
from config_file.exceptions import MissingKeyError, ParsingError
-from config_file.parsers.ini_parser import IniParser
+from config_file.ini_parser import IniParser
@pytest.mark.parametrize("ini_file", ["blahblahblah", "{ 'key1': 5 }"])
@@ -39,7 +39,7 @@ floatkey = 5.3
"test_input", ["invalid.invalid_key"],
)
def test_that_getting_unknown_sections_or_keys_throws_errors(test_input):
- with pytest.raises(ParsingError):
+ with pytest.raises(KeyError):
IniParser("").get(test_input)