##// END OF EJS Templates
handle lecture test moving to lib
Min RK -
Show More
@@ -1,24 +1,15 b''
1 """Test lexers module"""
1 """Test lexers module"""
2 #-----------------------------------------------------------------------------
2
3 # Copyright (C) 2014 The IPython Development Team
3 # Copyright (c) IPython Development Team.
4 #
4 # Distributed under the terms of the Modified BSD License.
5 # Distributed under the terms of the BSD License. The full license is in
5
6 # the file COPYING, distributed as part of this software.
6 from unittest import TestCase
7 #-----------------------------------------------------------------------------
8
9 #-----------------------------------------------------------------------------
10 # Imports
11 #-----------------------------------------------------------------------------
12 from pygments.token import Token
7 from pygments.token import Token
13
8
14 from jupyter_nbconvert.tests.base import TestsBase
15 from .. import lexers
9 from .. import lexers
16
10
17
11
18 #-----------------------------------------------------------------------------
12 class TestLexers(TestCase):
19 # Classes and functions
20 #-----------------------------------------------------------------------------
21 class TestLexers(TestsBase):
22 """Collection of lexers tests"""
13 """Collection of lexers tests"""
23 def setUp(self):
14 def setUp(self):
24 self.lexer = lexers.IPythonLexer()
15 self.lexer = lexers.IPythonLexer()
@@ -193,6 +193,8 b" if not have['matplotlib']:"
193 sec = test_sections['lib']
193 sec = test_sections['lib']
194 if not have['zmq']:
194 if not have['zmq']:
195 sec.exclude('kernel')
195 sec.exclude('kernel')
196 if not have['pygments']:
197 sec.exclude('tests.test_lexers')
196 # We do this unconditionally, so that the test suite doesn't import
198 # We do this unconditionally, so that the test suite doesn't import
197 # gtk, changing the default encoding and masking some unicode bugs.
199 # gtk, changing the default encoding and masking some unicode bugs.
198 sec.exclude('inputhookgtk')
200 sec.exclude('inputhookgtk')
General Comments 0
You need to be logged in to leave comments. Login now