summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-11-10 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2018-11-13 08:51:30 +0100
commit25aca2e7c3c13b298290148cfd55ab426f1c68d4 (patch)
treed35f486509007382d8531269b69e13e5b463da67 /tests
parentec46c2b3955d36a2a90741a48f2b426b341bbba0 (diff)
downloaddconf-25aca2e7c3c13b298290148cfd55ab426f1c68d4.tar.gz
bin: Sort output of list and dump commands
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-dconf.py17
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/test-dconf.py b/tests/test-dconf.py
index 6e804d7..bbb76f7 100755
--- a/tests/test-dconf.py
+++ b/tests/test-dconf.py
@@ -70,10 +70,7 @@ def dconf_write(key, value):
def dconf_list(key):
- lines = dconf('list', key).stdout.splitlines()
- # FIXME: Change dconf to produce sorted output.
- lines.sort()
- return lines
+ return dconf('list', key).stdout.splitlines()
def dconf_watch(path):
@@ -281,23 +278,19 @@ class DBusTest(unittest.TestCase):
"""Checks that output produced with dump can be used with load and
vice versa.
"""
- # FIXME: This test depends on:
- # * order of groups
- # * order of items within groups
- # Change dconf to produce output in sorted order.
-
keyfile = dedent('''\
[/]
password='secret'
+ [org/editor]
+ window-fullscreen=true
+ window-size=(1024, 768)
+
[org/editor/language/c-sharp]
tab-width=8
[org/editor/language/c]
tab-width=2
-
- [org/editor]
- window-size=(1280, 977)
''')
# Load and dump is identity.