提交 7f55a017 编写于 作者: M Michael Boulton

Run integration tests by default

上级 dc6705ce
......@@ -2676,6 +2676,7 @@ class WebsocketWrapper:
byte = self._socket.recv(1)
self._readbuffer.extend(byte)
# line end
if byte == b"\n":
if len(self._readbuffer) > 2:
......
def pytest_addoption(parser):
parser.addoption(
"--run-integration-tests",
action="store_true",
help="Run integration tests as well as unit tests"
)
......@@ -11,14 +11,6 @@ from paho.mqtt.client import WebsocketConnectionError
from testsupport.broker import fake_websocket_broker
pytestmark = [
pytest.mark.skipif(
not pytest.config.getoption("--run-integration-tests"),
reason="Specify --run-integration-tests to run these tests",
),
]
@pytest.fixture
def init_response_headers():
# "Normal" websocket response from server
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册