From 8b299233ccc450805bfbe5331f708fa6fac2f6bb Mon Sep 17 00:00:00 2001 From: David Wahlstrom Date: Wed, 3 Jun 2015 07:35:28 -0700 Subject: [PATCH] Add mock module and additional documentation This patch updates conf.py's mock_modules to include the required python-novaclient module to ensure we have green tests. This patch also updates the openstack_vms.py description to be more explicit about it's requirements. --- docs/conf.py | 3 ++- i3pystatus/openstack_vms.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index c29cb33..6705bdb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -30,7 +30,8 @@ MOCK_MODULES = [ "i3pystatus.pulseaudio.pulse", "notmuch", "requests", - "bs4" + "bs4", + "python-novaclient" ] for mod_name in MOCK_MODULES: diff --git a/i3pystatus/openstack_vms.py b/i3pystatus/openstack_vms.py index d8da803..52d7bad 100644 --- a/i3pystatus/openstack_vms.py +++ b/i3pystatus/openstack_vms.py @@ -9,6 +9,7 @@ class Openstack_vms(IntervalModule): """ Displays the number of VMs in an openstack cluster in ACTIVE and non-ACTIVE states. + Requires: python-novaclient """ settings = (