Commit 3593a64e authored by Jason R. Coombs's avatar Jason R. Coombs

Skip integration tests when one of the packages under test is already...

Skip integration tests when one of the packages under test is already installed, as the installation will fail in that case.
parent 0a8b9a31
......@@ -14,6 +14,17 @@ from setuptools.command import easy_install as easy_install_pkg
from setuptools.dist import Distribution
def setup_module(module):
packages = 'stevedore', 'virtualenvwrapper', 'pbr', 'novaclient'
for pkg in packages:
try:
__import__(pkg)
tmpl = "Integration tests cannot run when {pkg} is installed"
pytest.skip(tmpl.format(**locals()))
except ImportError:
pass
@pytest.fixture
def install_context(request, tmpdir, monkeypatch):
"""Fixture to set up temporary installation directory.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment