summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-07 18:44:25 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:55 -0300
commit9386dd0452eb72c0940f14756254c4e14ac76415 (patch)
tree2f231e8bf2c271e4fe3489b94ab483fc81e22053
parent5d4af8f96b998af696cbf2a4518cc050f60f78b9 (diff)
Updated translation test to use previous generated qm files.
Upload qm files used on test to git. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
-rw-r--r--tests/QtCore/translation_test.py8
-rw-r--r--tests/QtCore/translations/trans_latin.qmbin0 -> 125 bytes
-rw-r--r--tests/QtCore/translations/trans_russian.qmbin0 -> 114 bytes
3 files changed, 0 insertions, 8 deletions
diff --git a/tests/QtCore/translation_test.py b/tests/QtCore/translation_test.py
index 7b5c5d63..d357b90d 100644
--- a/tests/QtCore/translation_test.py
+++ b/tests/QtCore/translation_test.py
@@ -16,14 +16,6 @@ class TranslationTest(UsesQCoreApplication):
def setUp(self):
super(TranslationTest, self).setUp()
self.trdir = os.path.join(os.path.dirname(__file__), 'translations')
- # os.system is probably not the best way to do it
- for file in glob.glob('%s/*.ts' % self.trdir):
- self.assertFalse(os.system('lrelease -silent %s' % file))
-
- def tearDown(self):
- for file in glob.glob('%s/*.qm' % self.trdir):
- os.remove(file)
- super(TranslationTest, self).tearDown()
def testLatin(self):
#Set string value to Latin
diff --git a/tests/QtCore/translations/trans_latin.qm b/tests/QtCore/translations/trans_latin.qm
new file mode 100644
index 00000000..efdbee8c
--- /dev/null
+++ b/tests/QtCore/translations/trans_latin.qm
Binary files differ
diff --git a/tests/QtCore/translations/trans_russian.qm b/tests/QtCore/translations/trans_russian.qm
new file mode 100644
index 00000000..5f16552a
--- /dev/null
+++ b/tests/QtCore/translations/trans_russian.qm
Binary files differ