File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def parse_defaults_from_config_file(fileName='config.ini'):
49
49
conf_file = os .path .join (dirname , fileName )
50
50
if os .path .isfile (conf_file ):
51
51
config = configparser .ConfigParser ()
52
+ config .optionxform = str
52
53
config .read (conf_file )
53
54
for sect in config .sections ():
54
55
for name , value in config .items (sect ):
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def test_case02():
14
14
def test_case03 ():
15
15
result = parse_defaults_from_config_file ()
16
16
elements = list (result .keys ())
17
- mandatoryItems = ['port' , 'serverport ' ]
17
+ mandatoryItems = ['port' , 'serverPort ' ]
18
18
assert all (item in elements for item in mandatoryItems )
19
19
20
20
@@ -26,4 +26,4 @@ def test_case04():
26
26
27
27
def test_case05 ():
28
28
result = parse_defaults_from_config_file ()
29
- assert int (result ['port' ]) == 4242 and int (result ['serverport ' ]) == 9084
29
+ assert int (result ['port' ]) == 4242 and int (result ['serverPort ' ]) == 9084
You can’t perform that action at this time.
0 commit comments