def add_tests(self, test_json): """Takes a list of tests in the format required by the configuration file and adds them to the tests that this TestRunner will run.""" configuration = test_json['configuration'] for thread in test_json['tests']: work_provider = WorkProvider() work_nodes = [] for test in thread: test_obj = { 'test': test, 'configuration': configuration, 'environment': {}, } work_nodes.extend(TestLoader.get_work_nodes_for_test(test_obj)) work_provider.add_nodes(*work_nodes) self.work_providers.append(work_provider)