Skip to main content

pytest-play support for MQTT

Project description

=========
play mqtt
=========


.. image:: https://img.shields.io/pypi/v/play_mqtt.svg
:target: https://pypi.python.org/pypi/play_mqtt

.. image:: https://img.shields.io/travis/tierratelematics/play_mqtt.svg
:target: https://travis-ci.org/tierratelematics/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/tierratelematics/play_mqtt/branch/develop/graph/badge.svg
:target: https://codecov.io/gh/tierratelematics/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": "mqtthost","port":mqtt_port,
"endpoint": '$mqtt_endpoint',
"payload": {
"measure_id": [100],
"obj_id_L": [0],
"measureType": ["float"],
"start_time": 1514911926114,
"bin_value": [77251432]
}
}

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/tierratelematics/cookiecutter-play-plugin
.. _pytest-play: https://github.com/tierratelematics/pytest-play
.. _cookiecutter-qa: https://github.com/tierratelematics/cookiecutter-qa
.. _`@davidemoro`: https://twitter.com/davidemoro


=======
CHANGES
=======

0.0.2 (2018-01-10)
------------------

- Commands accept kwargs now


0.0.1 (2018-01-04)
------------------

* First release


Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page