Everyone
I have a function which is the handler for aws lambdafunction.
def data_list(event, data_subject):
dynamodb = boto3.resource("dynamodb")
table = dynamodb.Table("TestTable")
print("DATA_LIST")
def get_col_name(data_subject):
if data_subject == "X":
return 'something'
elif data_subject == "y":
return 'some other things'
elif data_subject == "c":
return 'really'
def another_function(var):
pass
I have multiple function under data_list function how can we write unittest cases for each individual function which is under data_list function