def test_deploy_without_layer_json2(self): with patch('boto3.client') as mock_client: modules.deploy_without_layer('eu-west-1', 'STACKID', 'APPID', custom_json='') self.assertEqual(mock_client.call_count, 2)
def test_run_deploy_without_layer2(self): usage_stdout = StringIO() with contextlib.redirect_stdout(usage_stdout): modules.deploy_without_layer(region=region, stack=stack, app=app) output = usage_stdout.getvalue().strip() self.assertIn('deploy_without_layer sub function', output)