Coverage for crunch/client/enums.py: 100.00%

9 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-10-01 13:43 +0000

1from enum import Enum 

2 

3 

4class WorkflowType(str, Enum): 

5 snakemake = "snakemake" 

6 script = "script" 

7 

8 

9class RunResult(Enum): 

10 SUCCESS = 0 

11 FAIL = 1 

12 

13 def __bool__(self): 

14 return self.value > 0