get _test_data_config[keys0][keys1]...[keysN]
(*keys)
| 88 | |
| 89 | |
| 90 | def testing_data_config(*keys): |
| 91 | """get _test_data_config[keys0][keys1]...[keysN]""" |
| 92 | if not _test_data_config: |
| 93 | with open(f"{MODULE_PATH}/tests/testing_data/data_config.json") as c: |
| 94 | _config = json.load(c) |
| 95 | for k, v in _config.items(): |
| 96 | _test_data_config[k] = v |
| 97 | return reduce(operator.getitem, keys, _test_data_config) |
| 98 | |
| 99 | |
| 100 | def get_testing_algo_template_path(): |
no test coverage detected
searching dependent graphs…