test_settings/test_manual: Match renders order with file
This commit is contained in:
@@ -6,6 +6,8 @@ from overviewer_core.settingsValidators import ValidationException
|
|||||||
from overviewer_core import world
|
from overviewer_core import world
|
||||||
from overviewer_core import rendermodes
|
from overviewer_core import rendermodes
|
||||||
|
|
||||||
|
from overviewer_core.util import OrderedDict
|
||||||
|
|
||||||
class SettingsTest(unittest.TestCase):
|
class SettingsTest(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
@@ -45,21 +47,21 @@ class SettingsTest(unittest.TestCase):
|
|||||||
self.s.set_config_item("worlds", {
|
self.s.set_config_item("worlds", {
|
||||||
'test': "test/data/settings/test_world",
|
'test': "test/data/settings/test_world",
|
||||||
})
|
})
|
||||||
self.s.set_config_item("renders", {
|
self.s.set_config_item("renders", OrderedDict([
|
||||||
"myworld": {
|
("myworld", {
|
||||||
"title": "myworld title",
|
"title": "myworld title",
|
||||||
"world": "test",
|
"world": "test",
|
||||||
"rendermode": rendermodes.normal,
|
"rendermode": rendermodes.normal,
|
||||||
"northdirection": "upper-left",
|
"northdirection": "upper-left",
|
||||||
},
|
}),
|
||||||
|
|
||||||
"otherworld": {
|
("otherworld", {
|
||||||
"title": "otherworld title",
|
"title": "otherworld title",
|
||||||
"world": "test",
|
"world": "test",
|
||||||
"rendermode": rendermodes.normal,
|
"rendermode": rendermodes.normal,
|
||||||
"bgcolor": "#ffffff"
|
"bgcolor": "#ffffff"
|
||||||
},
|
}),
|
||||||
})
|
]))
|
||||||
self.s.set_config_item("outputdir", "/tmp/fictional/outputdir")
|
self.s.set_config_item("outputdir", "/tmp/fictional/outputdir")
|
||||||
self.assertEquals(fromfile.get_validated_config(), self.s.get_validated_config())
|
self.assertEquals(fromfile.get_validated_config(), self.s.get_validated_config())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user