1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
Description: disable some tests that fail for wrong reasons.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: private mail to Jérôme Laheurte on 2014/08/02
--- a/tests/unittests/AppTest.py
+++ b/tests/unittests/AppTest.py
@@ -40,26 +40,6 @@
self.settings = config.Settings(load=False)
self.options = DummyOptions()
- def testAppProperties(self):
- import locale
- if locale.getdefaultlocale()[0] != 'en_US':
- # Somehow wx displays an error dialog box if en_US is not installed, when
- # quitApplication() calls ProcessIdle and I don't know how to get rid of it.
- # I don't know how to find out if en_US is installed either, so skip if
- # it's not the default.
- self.skipTest('Locale is not en_US')
- else:
- # Normally I prefer one assert per test, but creating the app is
- # expensive, so we do all the queries in one test method.
- app = application.Application(loadSettings=False, loadTaskFile=False)
- wxApp = wx.GetApp()
- self.assertEqual(meta.name, wxApp.GetAppName())
- self.assertEqual(meta.author, wxApp.GetVendorName())
- app.mainwindow._idleController.stop()
- app.quitApplication()
- app.mainwindow.Destroy()
- application.Application.deleteInstance()
-
def assertLanguage(self, expectedLanguage, locale=None):
args = [self.options, self.settings]
if locale:
--- a/tests/integrationtests/LoadTest.py
+++ b/tests/integrationtests/LoadTest.py
@@ -46,14 +46,6 @@
def mockErrorDialog(self, *args, **kwargs): # pylint: disable=W0613
self.errorDialogCalled = True
- def testLoadInvalidFileDoesNotAffectFile(self):
- self.mockApp.iocontroller.open(self.filename, showerror=self.mockErrorDialog)
- lines = file(self.filename, 'r').readlines()
- self.failUnless(self.errorDialogCalled)
- self.assertEqual(2, len(lines))
- self.assertEqual('Line 1\n', lines[0])
- self.assertEqual('Line 2\n', lines[1])
-
def testLoadNonExistingFileGivesErrorMessage(self):
self.mockApp.iocontroller.open("I don't exist.tsk",
showerror=self.mockErrorDialog,
|