Move unit tests into unit test directory

In order to pave the way for functional testing, move existing unit
tests into a directory labeled unit. A subsequent patch will add a
directory for functional tests.

Change-Id: I08e592c328104139386b1199cdc9c3aa9841805f
This commit is contained in:
Ruslan Kamaldinov 2015-05-09 14:40:18 +03:00
parent 1bb107cf0d
commit 5aadf96d05
18 changed files with 9 additions and 8 deletions

View File

@ -2,6 +2,6 @@
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover $DISCOVER_DIRECTORY $LISTOPT $IDOPTION
${PYTHON:-python} -m subunit.run discover -t ./ ./muranoclient/tests $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -19,7 +19,7 @@ import testtools
from muranoclient.common import exceptions as exc
from muranoclient.common import http
from muranoclient.tests import fakes
from muranoclient.tests.unit import fakes
@mock.patch('muranoclient.common.http.requests.request')

View File

@ -16,7 +16,7 @@ import os
import shutil
from muranoclient.openstack.common.apiclient import exceptions
from muranoclient.tests import base
from muranoclient.tests.unit import base
from muranoclient.v1.package_creator import hot_package
from muranoclient.v1.package_creator import mpl_package

View File

@ -31,8 +31,8 @@ from muranoclient.common import exceptions as common_exceptions
from muranoclient.common import utils
from muranoclient.openstack.common.apiclient import exceptions
import muranoclient.shell
from muranoclient.tests import base
from muranoclient.tests import test_utils
from muranoclient.tests.unit import base
from muranoclient.tests.unit import test_utils
from muranoclient.v1 import shell as v1_shell
make_pkg = test_utils.make_pkg

View File

@ -5,16 +5,17 @@ skipsdist = True
[testenv]
usedevelop = True
whitelist_externals = bash
install_command = pip install -U {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
setenv = VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = bash tools/pretty_tox.sh '{posargs}'
[testenv:pep8]
commands = flake8 {posargs}
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}