Coverage for venv1 / lib / python3.10 / site-packages / combinatrix / test / fixtures / matrix_csv.py: 0%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-04 09:41 +0100

1import os 

2from combinatrix.testintegration import rel2abs 

3from combinatrix.core import load_matrix 

4 

5 

6class MatrixCSVFactory(object): 

7 

8 @classmethod 

9 def get_matrix(cls, ident): 

10 if ident is None or ident == "-": 

11 return None 

12 path = rel2abs(__file__, "..", "resources", "fixtures", ident + ".matrix.csv") 

13 if os.path.exists(path): 

14 return load_matrix(path) 

15 return None