So for this function, I have a json file with list of files , which are tests
def wantFunction(self, function):
test = '.'.join([function.__module__, function.__name__])
if test in self.ctrl.keys():
for in evidence.values():
if os.environ['ENNVAR'] in controls:
return True
return False
This takes the input from a json file (contains the list of tests), but once it detects a test which returns True, the wantFunction does not go through the other tests present in the json file (list). Could someone tell why it is happening?