Base test case data structure.
| 33 | |
| 34 | @dataclass |
| 35 | class TestCase: |
| 36 | """Base test case data structure.""" |
| 37 | test_type: TestType |
| 38 | test_id: int |
| 39 | original_case_num: int |
| 40 | description: str |
| 41 | |
| 42 | def to_dict(self) -> dict[str, Any]: |
| 43 | """Convert test case to dictionary.""" |
| 44 | return { |
| 45 | 'test_type': self.test_type.value, |
| 46 | 'test_id': self.test_id, |
| 47 | 'original_case_num': self.original_case_num, |
| 48 | 'description': self.description |
| 49 | } |
| 50 | |
| 51 | |
| 52 | @dataclass |