From 9ac95cf66553659d893bf69ddff56c2e62043a2b Mon Sep 17 00:00:00 2001 From: Ken Roberts Date: Thu, 5 May 2016 12:37:48 -0700 Subject: [PATCH] Skip crosswalk.com test while server down --- openlp/core/common/__init__.py | 7 +++---- tests/interfaces/openlp_plugins/bibles/test_lib_http.py | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openlp/core/common/__init__.py b/openlp/core/common/__init__.py index 17fdf027b..f1abd8fe6 100644 --- a/openlp/core/common/__init__.py +++ b/openlp/core/common/__init__.py @@ -55,10 +55,9 @@ def trace_error_handler(logger): """ log_string = "OpenLP Error trace" for tb in traceback.extract_stack(): - log_string = '{text}\n File {file} at line {line} \n\t called {data}'.format(text=log_string, - file=tb[0], - line=tb[1], - data=tb[3]) + log_string += '\n File {file} at line {line} \n\t called {data}'.format(file=tb[0], + line=tb[1], + data=tb[3]) logger.error(log_string) diff --git a/tests/interfaces/openlp_plugins/bibles/test_lib_http.py b/tests/interfaces/openlp_plugins/bibles/test_lib_http.py index ca2269aa4..5d73d01e8 100644 --- a/tests/interfaces/openlp_plugins/bibles/test_lib_http.py +++ b/tests/interfaces/openlp_plugins/bibles/test_lib_http.py @@ -22,7 +22,7 @@ """ Package to test the openlp.plugin.bible.lib.https package. """ -from unittest import TestCase +from unittest import TestCase, skip from openlp.core.common import Registry from openlp.plugins.bibles.lib.http import BGExtract, CWExtract, BSExtract @@ -146,6 +146,7 @@ class TestBibleHTTP(TestCase): self.assertIsNotNone(bibles) self.assertIn(('Holman Christian Standard Bible', 'HCSB', 'en'), bibles) + @skip("Waiting for Crosswalk to fix their server") def crosswalk_get_bibles_test(self): """ Test getting list of bibles from Crosswalk.com