Commit Graph

8 Commits

Author SHA1 Message Date
Matt Riedemann c8ec991483 Add mock to test-requirements
There are several changes which depend on using mock rather than mox for
unit tests:

https://review.openstack.org/#/c/42474/
https://review.openstack.org/#/c/43161/

And the general trend seems to be to move from using mock over mox for
new tests (see blueprint mox-to-mock-conversion).

And given mock is listed in the global-requirements.txt file in the
openstack/requirements project, we should require mock for nova so we
can start using it.

Change-Id: Iaa0f233c28de2f92a237ee6d089858ee10bc6d2f
2013-08-28 19:30:49 -07:00
Joe Gordon 27b96675f2 Upgrade to Hacking 0.7
There was a bug in hacking 0.6 that broke H202, assertRaises Exception
too broad, so switch to Hacking 0.7 and fix the one H202 bug.

Change-Id: Ia3fb22d1524022479d7068cb84a3bdf7ca19f408
2013-08-15 15:56:02 -04:00
Rick Harris a134850886 Catch ldap ImportError
Since the `ldap` module isn't a requirement, we need to guard against it not
being present.

One reason this is needed is that we generate sample configs by walking the
module import tree. If a module isn't importable--because a depenency isn't
met, for example--the module's configs are omitted from the sample config,
requiring the developer to manually add them back.

Fixes bug 1208560

Change-Id: Ie23b7fad118ecadabf7e36703934fa933f4e8c50
2013-08-08 17:38:20 +00:00
Joe Gordon dea5ce73a8 Start using hacking 0.6
So we can start using new hacking 0.6 checks.

Since hacking 0.6 pins pep8, pyflakes and flake8 they can be removed
from test-requires. For any unfixed checks list them in tox.ini

Fix a H103, 'Header does not match Apache 2.0 License notice' that
leaked in

Change-Id: I652fe3270f1c37afdd386bfae7c4b27b6abcfa06
2013-07-25 12:15:17 -04:00
Julien Danjou 923a7eeaa3 Check that the configuration file sample is up to date
We added this check recently to Ceilometer, and it helps a lot to keep this
file always up to date and not falling behind.

Change-Id: I5ad2c6366032a39c2e55dd11a16b9f1780ab9ed0
2013-07-18 20:22:43 +02:00
Doug Hellmann 47500553d9 Use oslo.sphinx and remove local copy of doc theme
Use the new oslo.sphinx version of the OpenStack doc
theme instead of copying it into this repo.

blueprint oslo.sphinx

Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Change-Id: I0bd91f7bb43f97b99051fed65b75fc05d5149cc8
2013-07-06 13:18:04 -04:00
Monty Taylor 8a421f3821 Remove explicit distribute depend.
Causes issues with the recent re-merge with setuptools. Advice from
upstream is to stop doing explicit depends.

Change-Id: Ib2c68618368c766e7444e45074bddb01b29752d3
2013-06-11 11:37:19 -07:00
Ruby Loo 5740920bb3 Rename requires files to standard names.
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files, and tools in the
general world are growing intelligence about them.

Change-Id: I68ece8406fb1d4e082a42db8e76e17b1aaa7e775
Fixes: bug #1179008
2013-05-22 20:12:08 +00:00