0

rename configParser to config_parser

CamelCase does not bode well in Python land, so it's best we rename
these ill-named files before the Guidoists get us and throw us into
a damp dungeon.
This commit is contained in:
Nicolas F
2019-07-24 09:18:02 +02:00
parent f314de1403
commit c13d3aae3c
5 changed files with 12 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
import unittest
from collections import OrderedDict
from overviewer_core import configParser
from overviewer_core import config_parser
from overviewer_core.settingsValidators import ValidationException
from overviewer_core import world
@@ -11,11 +11,11 @@ from overviewer_core import rendermodes
class SettingsTest(unittest.TestCase):
def setUp(self):
self.s = configParser.MultiWorldParser()
self.s = config_parser.MultiWorldParser()
def test_missing(self):
"Validates that a non-existant settings.py causes an exception"
self.assertRaises(configParser.MissingConfigException, self.s.parse, "doesnotexist.py")
self.assertRaises(config_parser.MissingConfigException, self.s.parse, "doesnotexist.py")
def test_existing_file(self):
self.s.parse("test/data/settings/settings_test_1.py")
@@ -41,7 +41,7 @@ class SettingsTest(unittest.TestCase):
to do it from a file
"""
fromfile = configParser.MultiWorldParser()
fromfile = config_parser.MultiWorldParser()
fromfile.parse("test/data/settings/settings_test_1.py")
self.s.set_config_item("worlds", {