4726cf1910
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
26 lines
411 B
Python
26 lines
411 B
Python
from importlib import import_module
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"item",
|
|
(
|
|
"__version__",
|
|
"Sanic",
|
|
"Blueprint",
|
|
"HTTPMethod",
|
|
"HTTPResponse",
|
|
"Request",
|
|
"Websocket",
|
|
"empty",
|
|
"file",
|
|
"html",
|
|
"json",
|
|
"redirect",
|
|
"text",
|
|
),
|
|
)
|
|
def test_imports(item):
|
|
import_module("sanic", item)
|