Total Complexity | 1 |
Total Lines | 20 |
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 | from mandos.analysis.prepping import MatrixPrep |
||
6 | |||
7 | from .. import get_test_resource |
||
8 | |||
9 | |||
10 | class TestPrep: |
||
11 | def test_matrix_prep(self): |
||
12 | df = MatrixPrep("phi").from_files([get_test_resource("shortform-matrix.csv")]) |
||
13 | assert len(df) == 6 |
||
14 | assert df["key"].unique().tolist() == ["shortform-matrix"] |
||
15 | assert df["type"].unique().tolist() == ["phi"] |
||
16 | |||
17 | |||
18 | if __name__ == "__main__": |
||
19 | pytest.main() |
||
20 |