PIM testing: check behavior with broken pim-manager.ini (FDO #70772)

The PIM Manager should be able to start normally and the default sort
order should be used instead of the invalid one from the config.

Invalid address books are also tested, without checking for any
specific value from GetActiveAddressBooks().
This commit is contained in:
Patrick Ohly 2013-10-27 15:22:03 +01:00
parent 1f8f2d14ea
commit 700ddd7b41
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,3 @@
sort = foobar
active = no-such-addressbook

View file

@ -799,6 +799,12 @@ XDG root.
# EDS workaround
time.sleep(2)
@property("snapshot", "broken-config")
def testBrokenConfig(self):
'''TestContacts.testBrokenConfig - start with broken pim-manager.ini'''
self.manager.Start()
self.assertEqual("last/first", self.manager.GetSortOrder())
@timeout(os.environ.get('TESTPIM_TEST_SYNC_TESTCASES', False) and 300000 or 300)
@property("snapshot", "simple-sort")
def testSync(self):