You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/nbconvert/postprocessors/tests/test_serve.py

25 lines
670 B

"""
Module with tests for the serve post-processor
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import pytest
from ...tests.base import TestsBase
class TestServe(TestsBase):
"""Contains test functions for serve.py"""
def test_constructor(self):
"""Can a ServePostProcessor be constructed?"""
pytest.importorskip("tornado")
try:
from ..serve import ServePostProcessor
except ImportError:
print("Something weird is happening.\n"
"Tornado is sometimes present, sometimes not.")
raise
ServePostProcessor()