MCPcopy Create free account
hub / github.com/nlweb-ai/NLWeb / TestCase

Class TestCase

AskAgent/python/testing/base_test_runner.py:35–49  ·  view source on GitHub ↗

Base test case data structure.

Source from the content-addressed store, hash-verified

33
34@dataclass
35class 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

Callers 1

run_testsMethod · 0.85

Calls

no outgoing calls

Tested by 1

run_testsMethod · 0.68