Lines 72-78
class AlgorithmsTest(object):
Link Here
|
72 |
This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml |
72 |
This is the main test function. All others will be executed based on the definitions in testdata/algorithm_tests.yaml |
73 |
""" |
73 |
""" |
74 |
with open(os.path.join(processingTestDataPath(), self.test_definition_file()), 'r') as stream: |
74 |
with open(os.path.join(processingTestDataPath(), self.test_definition_file()), 'r') as stream: |
75 |
algorithm_tests = yaml.load(stream) |
75 |
algorithm_tests = yaml.safe_load(stream) |
76 |
|
76 |
|
77 |
if 'tests' in algorithm_tests and algorithm_tests['tests'] is not None: |
77 |
if 'tests' in algorithm_tests and algorithm_tests['tests'] is not None: |
78 |
for idx, algtest in enumerate(algorithm_tests['tests']): |
78 |
for idx, algtest in enumerate(algorithm_tests['tests']): |