()
| 13 | |
| 14 | |
| 15 | def _get_exported_data(): |
| 16 | exported_file = os.path.join( |
| 17 | ray._private.worker._global_node.get_session_dir_path(), |
| 18 | "logs", |
| 19 | "export_events", |
| 20 | "event_EXPORT_DATASET_OPERATOR_SCHEMA.log", |
| 21 | ) |
| 22 | assert os.path.isfile(exported_file) |
| 23 | |
| 24 | with open(exported_file, "r") as f: |
| 25 | data = f.readlines() |
| 26 | |
| 27 | return [json.loads(line) for line in data] |
| 28 | |
| 29 | |
| 30 | def test_export_operator_schema(): |
no test coverage detected
searching dependent graphs…