Skip to content

Commit 6da9f96

Browse files
committed
fix test
1 parent a7f7a48 commit 6da9f96

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tests.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
response = requests.get(schema_url)
1111
response.raise_for_status()
1212

13-
files = glob.glob("*/*/*.json")
13+
# Probe files live at <manufacturer>/<model>/<model>.json. Exclude directories
14+
# that are not probe data (the probe-viewer app ships its own JSON config files).
15+
NON_PROBE_DIRS = {"apps", "scripts", "node_modules", ".github"}
16+
files = [
17+
file
18+
for file in glob.glob("*/*/*.json")
19+
if file.split("/")[0] not in NON_PROBE_DIRS
20+
]
1421

1522

1623
@pytest.mark.parametrize("file", files)

0 commit comments

Comments
 (0)