sanic/tests/conftest.py

13 lines
203 B
Python
Raw Permalink Normal View History

import sys
2018-08-26 15:43:14 +01:00
import pytest
from sanic import Sanic
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)