Skip to content

Commit 4e85030

Browse files
committed
Fix coverage
1 parent a0b3d7e commit 4e85030

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jsonpath_rfc9535/segments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def _children(node: JSONPathNode) -> Iterable[JSONPathNode]:
129129
)
130130
elif isinstance(node.value, list):
131131
for i, element in enumerate(node.value):
132-
if isinstance(val, (dict, list)):
132+
if isinstance(element, (dict, list)):
133133
yield JSONPathNode(
134134
value=element,
135135
location=node.location + (i,),

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ dependencies = [
5555
]
5656

5757
[tool.hatch.envs.default.scripts]
58-
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=jsonpath --cov=tests {args}"
59-
cov-html = "pytest --cov-report=html --cov-config=pyproject.toml --cov=jsonpath --cov=tests {args}"
58+
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=jsonpath_rfc9535 --cov=tests {args}"
59+
cov-html = "pytest --cov-report=html --cov-config=pyproject.toml --cov=jsonpath_rfc9535 --cov=tests {args}"
6060
no-cov = "cov --no-cov {args}"
6161
test = "pytest {args}"
6262
lint = "ruff check ."

0 commit comments

Comments
 (0)