Get 'cover' working and remove pypy

Change nova-powervm to nova_powervm so 'cover' works.
Added a test case to improve coverage.
Removed pypy from environment list.

Change-Id: I337f2e8b762349f16ec8e6cd9489688970969486
This commit is contained in:
Kyle L. Henderson 2014-10-29 16:26:11 -05:00
parent 4be982bf3c
commit 2e5dfe7881
4 changed files with 12 additions and 2 deletions

3
.gitignore vendored
View File

@ -3,3 +3,6 @@ build/*
.tox/ .tox/
nova_powervm.egg-info/ nova_powervm.egg-info/
*.pyc *.pyc
/.idea/
.coverage
/cover/

View File

@ -33,3 +33,10 @@ class TestPowerVMDriver(test.TestCase):
""" """
test_drv = driver.PowerVMDriver(fake.FakeVirtAPI()) test_drv = driver.PowerVMDriver(fake.FakeVirtAPI())
self.assertIsNotNone(test_drv) self.assertIsNotNone(test_drv)
def test_driver_init(self):
"""Validates the PowerVM driver can be initialized for the host."""
drv = driver.PowerVMDriver(fake.FakeVirtAPI())
drv.init_host('FakeHost')
# Nothing to really check here specific to the host.
self.assertIsNotNone(drv)

View File

@ -1,5 +1,5 @@
[metadata] [metadata]
name = nova-powervm name = nova_powervm
summary = PowerVM driver for OpenStack Nova. summary = PowerVM driver for OpenStack Nova.
description-file = README.rst description-file = README.rst
author = IBM author = IBM

View File

@ -1,6 +1,6 @@
[tox] [tox]
minversion = 1.6 minversion = 1.6
envlist = py27,py33,pypy,pep8 envlist = py33,py27,pep8
skipsdist = True skipsdist = True
[testenv] [testenv]