We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2cd007 commit bf5ceaeCopy full SHA for bf5ceae
tests/engine_tests/test_engine.py
@@ -1,4 +1,5 @@
1
import typing
2
+from itertools import chain
3
from pathlib import Path
4
5
import pyjson5
@@ -17,7 +18,10 @@
17
18
def _extract_test_cases(
19
test_cases_dir_path: Path,
20
) -> typing.Iterable[ParameterSet]:
- 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
+ ):
25
test_data = pyjson5.loads(file_path.read_text())
26
yield pytest.param(
27
test_data["context"],
0 commit comments