(test_name, key, data, rtol=1e-2)
| 339 | |
| 340 | |
| 341 | def test_integration_value(test_name, key, data, rtol=1e-2): |
| 342 | for idx, expected in enumerate(EXPECTED_ANSWERS): |
| 343 | if test_name not in expected: |
| 344 | continue |
| 345 | if key not in expected[test_name]: |
| 346 | continue |
| 347 | value = expected[test_name][key] |
| 348 | if np.allclose(data, value, rtol=rtol): |
| 349 | print(f"matched {idx} result of {test_name}, {key}, {rtol}.") |
| 350 | return True |
| 351 | raise ValueError(f"no matched results for {test_name}, {key}. {data}.") |
no outgoing calls
no test coverage detected
searching dependent graphs…