pytest-sanic icon indicating copy to clipboard operation
pytest-sanic copied to clipboard

a Pytest Plugin for Sanic.

Results 13 pytest-sanic issues
Sort by recently updated
recently updated
newest added

**Proposed Changes** - fix https://github.com/yunstanford/pytest-sanic/issues/61

Hey, Thanks for the great library! Seems like there is an error on ``sanic > 21.6``. The failure I see looks like that: ``` ERROR sanic.error:http_protocol.py:110 protocol.connection_task uncaught Traceback (most...

webscoket test case in README.md is wrong, I found correct example of websocket test case in dir example, so I think you should update the README.md better.

```python import asyncio import pytest from sanic import Blueprint, Sanic, response @pytest.fixture def app(): app = Sanic("test_sanic_app") bp = Blueprint("blueprint_route", url_prefix="/") @bp.route("/test_get") async def bp_root(request): return response.json({"GET": True}) app.blueprint(bp) yield...

The tests don't pass with `websockets-10.0`: ```bash $ poetry run pytest ImportError while loading conftest '/home/fab/Documents/repos/pytest-sanic/tests/conftest.py'. tests/conftest.py:7: in from sanic.websocket import WebSocketProtocol E ModuleNotFoundError: No module named 'sanic.websocket' ``` Works...

Hi! I use Blueprint groups, it was ok when I used sanic 20.x with pytest-sanic 1.7.0. But when I upgraded, I encountered the following: ``` @pytest.fixture def test_cli(loop, app, sanic_client):...

[`poetry-core`](https://github.com/python-poetry/poetry-core) is intended to be a light weight, fully compliant, self-contained package allowing PEP 517 compatible build frontends to build Poetry managed projects. Using `poetry-core` allows distribution packages to depend...

how do you build the documentation? Isn't `conf.py` required?

I think it would be nice if there's an easy way to get the request object back from the test client. What do you think?

question