AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Classes | Functions | Variables
gtest_env_var_test Namespace Reference

Classes

class  GTestEnvVarTest
 

Functions

def AssertEq (expected, actual)
 
def SetEnvVar (env_var, value)
 
def GetFlag (flag)
 
def TestFlag (flag, test_val, default_val)
 

Variables

string IS_WINDOWS = 'nt'
 
string IS_LINUX = 'Linux'
 
 COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_env_var_test_')
 
 environ = os.environ.copy()
 

Function Documentation

◆ AssertEq()

def gtest_env_var_test.AssertEq (   expected,
  actual 
)

◆ GetFlag()

def gtest_env_var_test.GetFlag (   flag)
Runs gtest_env_var_test_ and returns its output.

◆ SetEnvVar()

def gtest_env_var_test.SetEnvVar (   env_var,
  value 
)
Sets the env variable to 'value'; unsets it when 'value' is None.

◆ TestFlag()

def gtest_env_var_test.TestFlag (   flag,
  test_val,
  default_val 
)
Verifies that the given flag is affected by the corresponding env var.

Variable Documentation

◆ COMMAND

gtest_env_var_test.COMMAND = gtest_test_utils.GetTestExecutablePath('gtest_env_var_test_')

◆ environ

gtest_env_var_test.environ = os.environ.copy()

◆ IS_LINUX

string gtest_env_var_test.IS_LINUX = 'Linux'

◆ IS_WINDOWS

string gtest_env_var_test.IS_WINDOWS = 'nt'

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0