Skip to content

Commit bf5ceae

Browse files
committed
update glob to include jsonc
1 parent f2cd007 commit bf5ceae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/engine_tests/test_engine.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import typing
2+
from itertools import chain
23
from pathlib import Path
34

45
import pyjson5
@@ -17,7 +18,10 @@
1718
def _extract_test_cases(
1819
test_cases_dir_path: Path,
1920
) -> typing.Iterable[ParameterSet]:
20-
for file_path in test_cases_dir_path.glob("*.json"):
21+
for file_path in chain(
22+
test_cases_dir_path.glob("*.json"),
23+
test_cases_dir_path.glob("*.jsonc"),
24+
):
2125
test_data = pyjson5.loads(file_path.read_text())
2226
yield pytest.param(
2327
test_data["context"],

0 commit comments

Comments
 (0)