提交 45d165ec 编写于 作者: M Michael Boulton

Add flag to run integration tests

上级 bb2d8982
def pytest_addoption(parser):
parser.addoption(
"--run-integration-tests",
action="store_true",
help="Run integration tests as well as unit tests"
)
......@@ -11,6 +11,14 @@ 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
......@@ -239,4 +247,3 @@ class TestValidHeaders(object):
mqttc.connect("localhost", 1888, keepalive=10)
mqttc.disconnect()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册