Merge "Use environment fixture in tests"
This commit is contained in:
@@ -615,7 +615,9 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
|
|||||||
verifylist = [
|
verifylist = [
|
||||||
('templates', '/usr/share/openstack-tripleo-heat-templates/'),
|
('templates', '/usr/share/openstack-tripleo-heat-templates/'),
|
||||||
]
|
]
|
||||||
os.environ['TRIPLEO_ENVIRONMENT_DIRECTORY'] = self.tmp_dir.path
|
self.useFixture(
|
||||||
|
fixtures.EnvironmentVariable('TRIPLEO_ENVIRONMENT_DIRECTORY',
|
||||||
|
self.tmp_dir.path))
|
||||||
|
|
||||||
def assertEqual(*args):
|
def assertEqual(*args):
|
||||||
self.assertEqual(*args)
|
self.assertEqual(*args)
|
||||||
@@ -673,7 +675,9 @@ class TestDeployOvercloud(fakes.TestDeployOvercloud):
|
|||||||
verifylist = [
|
verifylist = [
|
||||||
('templates', '/usr/share/openstack-tripleo-heat-templates/'),
|
('templates', '/usr/share/openstack-tripleo-heat-templates/'),
|
||||||
]
|
]
|
||||||
os.environ['TRIPLEO_ENVIRONMENT_DIRECTORY'] = self.tmp_dir.path
|
self.useFixture(
|
||||||
|
fixtures.EnvironmentVariable('TRIPLEO_ENVIRONMENT_DIRECTORY',
|
||||||
|
self.tmp_dir.path))
|
||||||
|
|
||||||
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
||||||
error = self.assertRaises(hc_exc.CommandError, self.cmd.take_action,
|
error = self.assertRaises(hc_exc.CommandError, self.cmd.take_action,
|
||||||
|
|||||||
Reference in New Issue
Block a user