| Conditions | 4 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import os |
||
| 6 | def test_SetReader(root_dir, reference_data): |
||
| 7 | structs = reference_data['CSD_families'] |
||
| 8 | |||
| 9 | for dataset, structs in reference_data.items(): |
||
| 10 | path = os.path.join(root_dir, rf'{dataset}.hdf5') |
||
| 11 | for s, s_ in zip(amd.SetReader(path), structs): |
||
| 12 | if not s == s_: |
||
| 13 | pytest.fail(f'On structure {s.name} SetReader disagrees with reference') |
||
| 14 | |||
| 32 |