sanic/tests/conftest.py

13 lines
203 B
Python
Raw Normal View History

import sys
2018-08-26 15:43:14 +01:00
import pytest
from sanic import Sanic
2018-12-30 11:18:06 +00:00
if sys.platform in ["win32", "cygwin"]:
collect_ignore = ["test_worker.py"]
2018-08-26 15:43:14 +01:00
@pytest.fixture
def app(request):
return Sanic(request.node.name)