1
0
Fork 0
forked from github/pelican

add skips for tests relying on dev_requirements modules

This commit is contained in:
winlu 2015-04-11 22:45:31 +02:00
commit bf7d113caa
3 changed files with 30 additions and 3 deletions

View file

@ -26,6 +26,12 @@ try:
except ImportError:
BeautifulSoup = False # NOQA
try:
import bs4.builder._lxml as LXML
except ImportError:
LXML = False
@skipIfNoExecutable(['pandoc', '--version'])
@unittest.skipUnless(BeautifulSoup, 'Needs BeautifulSoup module')
@ -302,6 +308,7 @@ class TestBuildHeader(unittest.TestCase):
@unittest.skipUnless(BeautifulSoup, 'Needs BeautifulSoup module')
@unittest.skipUnless(LXML, 'Needs lxml module')
class TestWordpressXMLAttachements(unittest.TestCase):
def setUp(self):
self.old_locale = locale.setlocale(locale.LC_ALL)