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
changes/93/152293/1
Kyle L. Henderson 8 years ago
parent 4be982bf3c
commit 2e5dfe7881

3
.gitignore vendored

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

@ -33,3 +33,10 @@ class TestPowerVMDriver(test.TestCase):
"""
test_drv = driver.PowerVMDriver(fake.FakeVirtAPI())
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]
name = nova-powervm
name = nova_powervm
summary = PowerVM driver for OpenStack Nova.
description-file = README.rst
author = IBM

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

Loading…
Cancel
Save