Skip to content

Commit bc2a952

Browse files
jmchiltonclaude
andcommitted
Add missing docstrings in testing.py (D102, D107).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fb82df7 commit bc2a952

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gxformat2/testing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ class ExpectationSuite(BaseModel):
101101

102102
@classmethod
103103
def from_yaml(cls, path: str) -> "ExpectationSuite":
104+
"""Load an expectation suite from a YAML file."""
104105
with open(path) as f:
105106
raw = yaml.safe_load(f)
106107
if not raw:
@@ -269,6 +270,7 @@ def __init__(
269270
expectations_dir: Optional[str] = None,
270271
cases: Optional[List[Tuple[str, TestCase]]] = None,
271272
):
273+
"""Initialize with operations map and fixture loader."""
272274
self.operations = operations
273275
self.load_fixture = load_fixture
274276
if cases is not None:
@@ -280,6 +282,7 @@ def __init__(
280282

281283
@property
282284
def cases(self) -> List[Tuple[str, TestCase]]:
285+
"""Return loaded test cases."""
283286
return self._cases
284287

285288
def pytest_params(self):

0 commit comments

Comments
 (0)