| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import pytest |
||
| 2 | from pocketutils.core.dot_dict import NestedDotDict |
||
| 3 | |||
| 4 | from mandos.analysis.io_defns import * |
||
| 5 | |||
| 6 | from .. import get_test_resource |
||
| 7 | |||
| 8 | |||
| 9 | class TestIoDefns: |
||
| 10 | def test_read_short_form(self): |
||
| 11 | df = SimilarityDfShortForm.read_file(get_test_resource("shortform-matrix.csv")) |
||
| 12 | assert len(df) == 3 |
||
| 13 | long = df.to_long_form("phi", "phi") |
||
| 14 | assert len(long) == 6 |
||
| 15 | |||
| 16 | |||
| 17 | if __name__ == "__main__": |
||
| 18 | pytest.main() |
||
| 19 |