0

test_settings/test_manual: Match renders order with file

This commit is contained in:
Johan Kiviniemi
2013-12-27 03:46:03 +02:00
parent b1bd77d962
commit c32abc00e0

View File

@@ -6,6 +6,8 @@ from overviewer_core.settingsValidators import ValidationException
from overviewer_core import world
from overviewer_core import rendermodes
from overviewer_core.util import OrderedDict
class SettingsTest(unittest.TestCase):
def setUp(self):
@@ -45,21 +47,21 @@ class SettingsTest(unittest.TestCase):
self.s.set_config_item("worlds", {
'test': "test/data/settings/test_world",
})
self.s.set_config_item("renders", {
"myworld": {
self.s.set_config_item("renders", OrderedDict([
("myworld", {
"title": "myworld title",
"world": "test",
"rendermode": rendermodes.normal,
"northdirection": "upper-left",
},
}),
"otherworld": {
("otherworld", {
"title": "otherworld title",
"world": "test",
"rendermode": rendermodes.normal,
"bgcolor": "#ffffff"
},
})
}),
]))
self.s.set_config_item("outputdir", "/tmp/fictional/outputdir")
self.assertEquals(fromfile.get_validated_config(), self.s.get_validated_config())