# Path: sockjs/transports/jsonp.py
# class JSONPolling(StreamingTransport):
#     async def send(self, text):
#     async def process(self):


from unittest import mock
from aiohttp import web
from aiohttp.test_utils import make_mocked_coro
from sockjs.transports import jsonp
import pytest





@pytest.fixture
def make_transport(make_request, make_manager, make_handler, make_fut):
    def maker(method="GET", path="/", query_params={}):
        handler = make_handler(None)
        manager = make_manager(handler)
        request = make_request(method, path, query_params=query_params)
        session = manager.get("TestSessionJsonP", create=True, request=request)
        request.app.freeze()

# Path: sockjs/transports/jsonp.py
# class JSONPolling(StreamingTransport):
#     async def send(self, text):
#     async def process(self):


# Path: tests/test_transport_jsonp.py
from unittest import mock
from aiohttp import web
from aiohttp.test_utils import make_mocked_coro
from sockjs.transports import jsonp
import pytest






@pytest.fixture
def make_transport(make_request, make_manager, make_handler, make_fut):
    def maker(method="GET", path="/", query_params={}):
        handler = make_handler(None)
        manager = make_manager(handler)
        request = make_request(method, path, query_params=query_params)
        session = manager.get("TestSessionJsonP", create=True, request=request)
        request.app.freeze()

        return jsonp.JSONPolling(manager, session, request)