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:
parent
4be982bf3c
commit
2e5dfe7881
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,3 +3,6 @@ build/*
|
|||||||
.tox/
|
.tox/
|
||||||
nova_powervm.egg-info/
|
nova_powervm.egg-info/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
/.idea/
|
||||||
|
.coverage
|
||||||
|
/cover/
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user