Skip to content

Commit

Permalink
fix: correct wrong order of items in .tests.backend.toml.CNF
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed Mar 5, 2017
1 parent 6ef45e5 commit 8b6298e
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions tests/backend/toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
ip = "10.0.0.2"
dc = "eqdc10"
[clients]
data = [ ["gamma", "delta"], [1, 2] ]
[clients]
data = [ ["gamma", "delta"], [1, 2] ]
hosts = [
"alpha",
Expand All @@ -45,31 +45,30 @@

_DOB = TT.toml.loads("dob = 1979-05-27T07:32:00Z")['dob']

CNF = ODict((('clients',
ODict((('data', [['gamma', 'delta'], [1, 2]]),
('hosts', ['alpha', 'omega'])))),
CNF = ODict((('title', 'TOML Example'),
('owner',
ODict((('name', 'Tom Preston-Werner'),
('dob', _DOB)))),
('database',
ODict((('connection_max', 5000),
('enabled', True),
ODict((('server', '192.168.1.1'),
('ports', [8001, 8001, 8002]),
('server', '192.168.1.1')))),
('owner',
ODict((('dob', _DOB),
('name', 'Tom Preston-Werner')))),
('connection_max', 5000),
('enabled', True)))),
('servers',
ODict((('alpha',
ODict((('dc', 'eqdc10'), ('ip', '10.0.0.1')))),
ODict((('ip', '10.0.0.1'), ('dc', 'eqdc10')))),
('beta',
ODict((('dc', 'eqdc10'), ('ip', '10.0.0.2'))))))),
('title', 'TOML Example')))
ODict((('ip', '10.0.0.2'), ('dc', 'eqdc10'))))))),
('clients',
ODict((('data', [['gamma', 'delta'], [1, 2]]),
('hosts', ['alpha', 'omega']))))))


class Test10(tests.backend.ini.Test10):

cnf = CNF
cnf_s = CNF_S
load_options = dump_options = dict(dummy="this_will_be_ignored")
is_order_kept = False # ..note:: toml backend cannot do this yet.

def setUp(self):
self.psr = TT.Parser()
Expand Down

0 comments on commit 8b6298e

Please sign in to comment.