forked from pool/python-nbconvert
48 lines
1.4 KiB
Diff
48 lines
1.4 KiB
Diff
|
---
|
||
|
nbconvert/exporters/tests/test_webpdf.py | 1 +
|
||
|
nbconvert/tests/test_nbconvertapp.py | 5 +++--
|
||
|
setup.cfg | 4 ++++
|
||
|
3 files changed, 8 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- a/nbconvert/exporters/tests/test_webpdf.py
|
||
|
+++ b/nbconvert/exporters/tests/test_webpdf.py
|
||
|
@@ -16,6 +16,7 @@ class TestWebPDFExporter(ExportersTestsB
|
||
|
|
||
|
exporter_class = WebPDFExporter
|
||
|
|
||
|
+ @pytest.mark.network
|
||
|
def test_export(self):
|
||
|
"""
|
||
|
Can a TemplateExporter export something?
|
||
|
--- a/nbconvert/tests/test_nbconvertapp.py
|
||
|
+++ b/nbconvert/tests/test_nbconvertapp.py
|
||
|
@@ -146,6 +146,7 @@ class TestNbConvertApp(TestsBase):
|
||
|
)
|
||
|
assert os.path.isfile('notebook with spaces.pdf')
|
||
|
|
||
|
+ @pytest.mark.network
|
||
|
def test_webpdf_with_chromium(self):
|
||
|
"""
|
||
|
Generate PDFs if chromium allowed to be downloaded?
|
||
|
@@ -356,8 +357,8 @@ class TestNbConvertApp(TestsBase):
|
||
|
text = f.read()
|
||
|
assert 'celltag_mycelltag celltag_mysecondcelltag' in text
|
||
|
assert 'celltag_mymarkdowncelltag' in text
|
||
|
-
|
||
|
-
|
||
|
+
|
||
|
+
|
||
|
def test_no_input(self):
|
||
|
"""
|
||
|
Verify that the html has no input when given --no-input.
|
||
|
--- a/setup.cfg
|
||
|
+++ b/setup.cfg
|
||
|
@@ -8,3 +8,7 @@ license_file = LICENSE
|
||
|
ignore =
|
||
|
nbconvert/resources/style.min.css
|
||
|
.circleci/*
|
||
|
+
|
||
|
+[tool:pytest]
|
||
|
+markers =
|
||
|
+ network: marks tests which require network connection
|