pytest-play support for MQTT
Project description
=========
play mqtt
=========
.. image:: https://img.shields.io/pypi/v/play_mqtt.svg
:target: https://pypi-hypernode.com/pypi/play_mqtt
.. image:: https://travis-ci.org/davidemoro/play_mqtt.svg?branch=develop
:target: https://travis-ci.org/davidemoro/play_mqtt
.. image:: https://readthedocs.org/projects/play-mqtt/badge/?version=latest
:target: https://play-mqtt.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://codecov.io/gh/davidemoro/play_mqtt/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/davidemoro/play_mqtt
``pytest-play`` support for MQTT support.
Thanks to ``play_mqtt`` you can test the integration between a mocked IoT
device that sends commands on MQTT and a reactive web application with UI checks.
You can also build a simulator that generates messages for you.
More info and examples on:
* pytest-play_, documentation
* cookiecutter-qa_, see ``pytest-play`` in action with a working example if you want to start hacking
Features
========
This project defines a new pytest-play_ command:
::
- provider: mqtt
type: publish
host: "$mqtt_host"
port: $mqtt_port
endpoint: "$mqtt_endpoint"
payload: '{
"endpoint": "$mqtt_endpoint",
"payload": {
"obj_id_L": [0],
"bin_value": [77251432],
"measure_id": [100],
"measureType": ["float"],
"start_time": 1514911926114
},
"host": "$mqtt_host",
"provider": "mqtt",
"type": "publish",
"port": "$mqtt_port"}'
Twitter
=======
``pytest-play`` tweets happens here:
* `@davidemoro`_
Credits
=======
This package was created with Cookiecutter_ and the cookiecutter-play-plugin_ (based on `audreyr/cookiecutter-pypackage`_ project template).
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. _`cookiecutter-play-plugin`: https://github.com/davidemoro/cookiecutter-play-plugin
.. _pytest-play: https://github.com/davidemoro/pytest-play
.. _cookiecutter-qa: https://github.com/davidemoro/cookiecutter-qa
.. _`@davidemoro`: https://twitter.com/davidemoro
=======
CHANGES
=======
0.0.3 (2019-01-25)
------------------
- Supports new pytest-play >= 2.0 YAML based syntax (json no more supported)
- No more payload parmeter is json encodable
0.0.2 (2018-01-10)
------------------
- Commands accept kwargs now
0.0.1 (2018-01-04)
------------------
* First release
play mqtt
=========
.. image:: https://img.shields.io/pypi/v/play_mqtt.svg
:target: https://pypi-hypernode.com/pypi/play_mqtt
.. image:: https://travis-ci.org/davidemoro/play_mqtt.svg?branch=develop
:target: https://travis-ci.org/davidemoro/play_mqtt
.. image:: https://readthedocs.org/projects/play-mqtt/badge/?version=latest
:target: https://play-mqtt.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://codecov.io/gh/davidemoro/play_mqtt/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/davidemoro/play_mqtt
``pytest-play`` support for MQTT support.
Thanks to ``play_mqtt`` you can test the integration between a mocked IoT
device that sends commands on MQTT and a reactive web application with UI checks.
You can also build a simulator that generates messages for you.
More info and examples on:
* pytest-play_, documentation
* cookiecutter-qa_, see ``pytest-play`` in action with a working example if you want to start hacking
Features
========
This project defines a new pytest-play_ command:
::
- provider: mqtt
type: publish
host: "$mqtt_host"
port: $mqtt_port
endpoint: "$mqtt_endpoint"
payload: '{
"endpoint": "$mqtt_endpoint",
"payload": {
"obj_id_L": [0],
"bin_value": [77251432],
"measure_id": [100],
"measureType": ["float"],
"start_time": 1514911926114
},
"host": "$mqtt_host",
"provider": "mqtt",
"type": "publish",
"port": "$mqtt_port"}'
=======
``pytest-play`` tweets happens here:
* `@davidemoro`_
Credits
=======
This package was created with Cookiecutter_ and the cookiecutter-play-plugin_ (based on `audreyr/cookiecutter-pypackage`_ project template).
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
.. _`cookiecutter-play-plugin`: https://github.com/davidemoro/cookiecutter-play-plugin
.. _pytest-play: https://github.com/davidemoro/pytest-play
.. _cookiecutter-qa: https://github.com/davidemoro/cookiecutter-qa
.. _`@davidemoro`: https://twitter.com/davidemoro
=======
CHANGES
=======
0.0.3 (2019-01-25)
------------------
- Supports new pytest-play >= 2.0 YAML based syntax (json no more supported)
- No more payload parmeter is json encodable
0.0.2 (2018-01-10)
------------------
- Commands accept kwargs now
0.0.1 (2018-01-04)
------------------
* First release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
play_mqtt-0.0.3.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for play_mqtt-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb40afad3851211b04dffaf72a08209d7719acafe5c5b96a0278e71524e99862 |
|
MD5 | a9a94524f8b28d72efd295b538f9e361 |
|
BLAKE2b-256 | 5825920cb67582371685023d495b5311749ab34416587c9ec55ebd3873340bdd |