From 54eb9fdf998c95be485cf96f790887a286718eb3 Mon Sep 17 00:00:00 2001 From: Matthew Seal Date: Thu, 25 Feb 2021 20:12:31 -0800 Subject: [PATCH] Applied patch for marking network changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matěj Cepl --- nbconvert/exporters/tests/test_webpdf.py | 1 + nbconvert/tests/test_nbconvertapp.py | 5 +++-- setup.cfg | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nbconvert/exporters/tests/test_webpdf.py b/nbconvert/exporters/tests/test_webpdf.py index a74b56716..a7a063217 100644 --- a/nbconvert/exporters/tests/test_webpdf.py +++ b/nbconvert/exporters/tests/test_webpdf.py @@ -16,6 +16,7 @@ class TestWebPDFExporter(ExportersTestsBase): exporter_class = WebPDFExporter + @pytest.mark.network def test_export(self): """ Can a TemplateExporter export something? diff --git a/nbconvert/tests/test_nbconvertapp.py b/nbconvert/tests/test_nbconvertapp.py index 4e06fa5cf..f746fb611 100644 --- a/nbconvert/tests/test_nbconvertapp.py +++ b/nbconvert/tests/test_nbconvertapp.py @@ -146,6 +146,7 @@ def test_filename_spaces(self): ) 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 @@ def test_cell_tag_output(self): 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. diff --git a/setup.cfg b/setup.cfg index e60add435..8130d8081 100644 --- 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