aodh/ceilometer/tests
Mehdi Abaakouk 3ee1fa3f13 Always init cfg.CONF before running a test
In all tests cfg.CONF is not (re)initialised correctly
By chance in ceilometer , the only method that fail when conf is not
initialised is cfg.CONF.find_file.
And because some tests do special initialisation (ie: the ones that test
ceilometer.service.prepare_service stuff), the method cfg.CONF.find_file
works when we run all tests.

But if you decide to run only one test (like below) that use find_file it fail
because cfg.CONF is not initialised.

  tox -epy27,pep8 api.v2

Not all configurations opts are impacted but only the CLI opts ones that are
set only when cfg.CONF() is called.

This change initialise cfg.CONF on each test (but the test can
continue to reinitialise it if needed)

Change-Id: I37842e945a7e2908e17d5ce886e17047a36818f7
2013-07-23 18:10:09 +02:00
..
__init__.py Skeleton for API server 2012-07-27 10:34:36 -04:00
api.py Activate H404 checks 2013-06-14 10:43:39 +02:00
base.py Always init cfg.CONF before running a test 2013-07-23 18:10:09 +02:00
db.py storage: fix clear/upgrade order 2013-07-17 14:37:19 +02:00