0

Fixing some settings stuff

This commit is contained in:
Andrew Chin
2012-01-02 00:03:10 -05:00
parent 42f6b7b6ad
commit 287b16fd13
8 changed files with 32 additions and 17 deletions

View File

@@ -1,9 +1,9 @@
world_path="test/data/settings/test_world"
worldpath="test/data/settings/test_world"
rendermode = "normal"
render["world"] = {
"rendermode": "normal",
"north-direction": ["upper-left"],
"northdirection": ["upper-left"],
}
render["otherworld"] = {

View File

@@ -1,5 +1,5 @@
render["world"] = {
"world_path": "test/data/settings/test_world",
"worldpath": "test/data/settings/test_world",
"rendermode": "bad_rendermode",
"north-direction": ["upper-left"],
"northdirection": ["upper-left"],
}

View File

@@ -14,6 +14,8 @@ class SettingsTest(unittest.TestCase):
s.validate()
things = s.get_render_things()
# no exceptions so far. that's good
self.assertEquals(things['world']['bgcolor'], (26,26,26))
def test_rendermode_validation(self):
s = configParser.MultiWorldParser("test/data/settings/settings_test_rendermode.py")
s.parse()