Rename functions which should not be run as tests.
These function names confuse some test runners which results in them incorrectly being run as tests. Change-Id: I0780c7d6dcea5019771b42fa5ffb2ebe215c1e20
This commit is contained in:
parent
fd1f212047
commit
c65c25c73d
|
@ -24,15 +24,15 @@ basepath = os.path.join(heat.__path__[0], os.path.pardir)
|
|||
class CliTest(testtools.TestCase):
|
||||
|
||||
def test_heat_cfn(self):
|
||||
self.bin_test_run('heat-cfn')
|
||||
self.bin_run('heat-cfn')
|
||||
|
||||
def test_heat_boto(self):
|
||||
self.bin_test_run('heat-boto')
|
||||
self.bin_run('heat-boto')
|
||||
|
||||
def test_heat_watch(self):
|
||||
self.bin_test_run('heat-watch')
|
||||
self.bin_run('heat-watch')
|
||||
|
||||
def bin_test_run(self, bin):
|
||||
def bin_run(self, bin):
|
||||
fullpath = basepath + '/bin/' + bin
|
||||
|
||||
proc = subprocess.Popen(fullpath,
|
||||
|
|
|
@ -103,7 +103,7 @@ def setup_mocks(mocks, stack):
|
|||
return fc
|
||||
|
||||
|
||||
def setup_test_stack(stack_name, ctx, create_res=True):
|
||||
def setup_stack(stack_name, ctx, create_res=True):
|
||||
stack = get_wordpress_stack(stack_name, ctx)
|
||||
stack.store()
|
||||
if create_res:
|
||||
|
@ -140,7 +140,7 @@ def stack_context(stack_name, create_res=True):
|
|||
def create_stack():
|
||||
ctx = getattr(test_case, 'ctx', None)
|
||||
if ctx is not None:
|
||||
stack = setup_test_stack(stack_name, ctx, create_res)
|
||||
stack = setup_stack(stack_name, ctx, create_res)
|
||||
setattr(test_case, 'stack', stack)
|
||||
|
||||
def delete_stack():
|
||||
|
|
Loading…
Reference in New Issue