Show More
@@ -1,5 +1,6 b'' | |||||
1 | import io |
|
1 | import io | |
2 | import nose.tools as nt |
|
2 | import nose.tools as nt | |
|
3 | import os | |||
3 | from nose.tools import nottest |
|
4 | from nose.tools import nottest | |
4 | from converters import ( |
|
5 | from converters import ( | |
5 | ConverterLaTeX, ConverterMarkdown, ConverterPy, ConverterHTML, |
|
6 | ConverterLaTeX, ConverterMarkdown, ConverterPy, ConverterHTML, | |
@@ -10,6 +11,20 b' from converters import (' | |||||
10 | def cleanfile(stn): |
|
11 | def cleanfile(stn): | |
11 | return filter(None, map(unicode.strip, stn.split('\n'))) |
|
12 | return filter(None, map(unicode.strip, stn.split('\n'))) | |
12 |
|
13 | |||
|
14 | @nottest | |||
|
15 | def skipiftravis(func): | |||
|
16 | if os.getenv('TRAVIS') == True: | |||
|
17 | func.__test__ = False | |||
|
18 | return func | |||
|
19 | ||||
|
20 | @nottest | |||
|
21 | def is_travis(): | |||
|
22 | return os.getenv('TRAVIS') == 'true' | |||
|
23 | ||||
|
24 | @nottest | |||
|
25 | def is_not_travis(): | |||
|
26 | return not is_travis() | |||
|
27 | ||||
13 |
|
28 | |||
14 | def test_evens(): |
|
29 | def test_evens(): | |
15 | ###### |
|
30 | ###### | |
@@ -26,8 +41,10 b' def test_evens():' | |||||
26 | (ConverterMarkdown, 'md'), |
|
41 | (ConverterMarkdown, 'md'), | |
27 | (ConverterLaTeX, 'tex'), |
|
42 | (ConverterLaTeX, 'tex'), | |
28 | (ConverterPy, 'py'), |
|
43 | (ConverterPy, 'py'), | |
29 | (ConverterHTML, 'html') |
|
|||
30 | ] |
|
44 | ] | |
|
45 | if is_not_travis() : | |||
|
46 | converters.append((ConverterHTML, 'html')) | |||
|
47 | ||||
31 | reflist = [ |
|
48 | reflist = [ | |
32 | 'tests/ipynbref/IntroNumPy.orig' |
|
49 | 'tests/ipynbref/IntroNumPy.orig' | |
33 | ] |
|
50 | ] |
General Comments 0
You need to be logged in to leave comments.
Login now