Skip Bible HTTP tests on Jenkins to prevent the server from being blacklisted

This commit is contained in:
Raoul Snyman 2017-09-25 11:50:24 -07:00
parent 7239b1e400
commit cff194d320
1 changed files with 3 additions and 1 deletions

View File

@ -22,13 +22,15 @@
"""
Package to test the openlp.plugin.bible.lib.https package.
"""
from unittest import TestCase, skip
import os
from unittest import TestCase, skipIf
from unittest.mock import MagicMock
from openlp.core.common import Registry
from openlp.plugins.bibles.lib.importers.http import BGExtract, CWExtract, BSExtract
@skipIf(os.environ.get('JENKINS_URL'), 'Skip Bible HTTP tests to prevent Jenkins from being blacklisted')
class TestBibleHTTP(TestCase):
def setUp(self):