-
Committer:
Tarmac
-
Author(s):
jaypipes at gmail
-
Date:
2010-10-11 19:56:54 UTC
-
mfrom:
(11.1.3 testing)
-
Revision ID:
hudson@openstack.org-20101011195654-lw7jqq6737ulzf3s
This patch overhauls the testing in Glance:
* Adds Nova-like run_tests.sh and tools/* files to automatically run unit tests in a virtual environment. Just do ./run_tests.sh -V from project root. All required dependencies will be installed into a new virtual environment at .glance-venv.
* Adds proper mocking and stubouts using pymox. This removes the need for all the FakeParallaxAdapter and similar code. Unit tests now call stubs.stub_out_parallax(), etc instead of having swiftfakehttp.py and similar code.