pytest-dbus-notification

D-BUS notifications for pytest results.


Keywords
pytest, pytest-, dbus, py.test
License
Other
Install
pip install pytest-dbus-notification==1.0.1

Documentation

A py.test plugin that displays test results using D-BUS notifications.

This plugins requires the dbus module.

Using in virtualenv

As of 14 feb 2014, you cannot install python-dbus with pip/easy_install.

You have two options:

  • install python-dbus in your virtualenv by downloading and building it
  • install python-dbus using your system package (like apt-get install python-dbus).

In the latter case if your virtualenv does not use system packages (that's the default option), your virtualenv sitll hasn't dbus module available. Just copy it from system packages:

# From virtualenv root folder
$ cp /usr/lib/pyshared/python2.7/_dbus_bindings.so lib/python2.7/site-packages/
$ cp -r cp -r /usr/share/pyshared/dbus lib/python2.7/site-packages/dbus
$ python
Python 2.7.5+ (default, Sep 19 2013, 13:48:49)
[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbus
>>>