summaryrefslogtreecommitdiff
path: root/tests/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Move tests into project package.Monty Taylor2013-06-301-59/+0
| | | | | | | | | | There are several reasons for this. One is that the majority of OpenStack packages behave this way. The second is that it makes writing software that extends something easier to test (which is a clear usecase for openstackclient) And third, tests/__init__.py implies a global package named "tests" - which I'm pretty sure we're not providing. Change-Id: Ic708ffd92aea78c2ffc1a8579af0587af4fca4ff
* Fix py26 tests: assertDictEqualDean Troyer2013-06-251-1/+26
| | | | | | | assertDictEqual is not present in py26 so shim it in here stolen from python-keystoneclient/tests/test_auth_token_middleware.py Change-Id: Ifd5990a8c03d11ee93cddc2f61653255970d974c
* First pass at adding compute unit tests.Josh Kearney2013-01-281-3/+2
| | | | Change-Id: Icf3340d457f75eec89bb0e5c9b4b953c3b81020f
* Standardize on a copyright header and ensure all files have them.Josh Kearney2013-01-241-0/+15
| | | | Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
* Migrate from nose to testr.Josh Kearney2013-01-221-7/+10
| | | | | | | | Run tests with testr for parallel execution. Part of blueprint grizzly-testtools. Change-Id: I560592186f2f440049a451a32e58067262ab62d0
* Clean up test environment and remove unused imports.Josh Kearney2013-01-221-4/+0
| | | | | | First round of adding more complete unit test coverage. Change-Id: Ic1979c499ca6fcb784892a95954a3527539c4e53
* Move from unittest2 to testtoolsDean Troyer2013-01-151-3/+3
| | | | Change-Id: I475a082af0660e0ee0e86ca4cd1bf0e2d711e3ed
* Create tests for shell interfaceDean Troyer2012-06-221-0/+21
| | | | | | | * use unittest2 * shell: command-line options Change-Id: I558fb10b8607e4f6e5c44d5fcac902546a8748a4
* Add openstack-common and test infrastructure.James E. Blair2012-04-281-21/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix pep8 errors (project is pep8 clean now). Update setup.py to use openstack-common style dependencies. Remove the unused novaclient dependency. Change the keystoneclient dependency to a git URL. Add test-requires, and move some pip-requires dependencies into it. Remove the test_utils unit test which wasn't testing anything that is actually present in the project. Add the test_authors unit test. Use tox for running tests locally. See: http://wiki.openstack.org/ProjectTestingInterface Tox can manage virtualenvs, and is currently doing so for running tests in Jenkins. It's just as, or more, useful for running tests locally, so this starts the migration from the run_tests system to tox. The goal is to reduce duplicate testing infrastructure, and get what's running locally on developer workstations as close to what is run by Jenkins as possible. Run_tests.sh will now call tox to facilitate the transition for developers used to typing "run_tests.sh". Developers will need tox installed on their workstations. It can be installed from PyPI with "pip install tox". run_tests.sh outputs those instructions if tox is not present. New facilities are available using tox directly, including: tox -e py26 # run tests under python 2.6 tox -e py27 # run tests under python 2.7 tox -e pep8 # run pep8 tests tox # run all of the above tox -e venv foo # run the command "foo" inside a virtualenv The OpenStack nose plugin is used when running tox from the command line, so the enhanced, colorized output is visible to developers running the test suite locally. However, when Jenkins runs tox, xunit output will be used instead, which is natively understood by jenkins and much more readable in that context. Change-Id: Ib627be3b37b5a09d3795006d412ddcc35f8c6c1e
* Set up common utilsDean Troyer2012-04-251-1/+15
|
* Add openstackclient bitsDean Troyer2012-04-191-0/+7