File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 1+ from pathlib import Path
12import math
2-
33import numpy
44import pytest
55
66import compas
77from compas .geometry import allclose
88
99
10- def pytest_ignore_collect (path ):
11- if "rhino" in str (path ):
12- return True
13-
14- if "blender" in str (path ):
10+ def pytest_ignore_collect (collection_path : Path , config ):
11+ # Skip anything under rhino/blender/ghpython, or files ending with _cli.py
12+ parts_lower = {p .lower () for p in collection_path .parts }
13+ if {"rhino" , "blender" , "ghpython" } & parts_lower :
1514 return True
1615
17- if "ghpython" in str ( path ):
16+ if collection_path . name . endswith ( "_cli.py" ):
1817 return True
1918
20- if str ( path ). endswith ( "_cli.py" ):
21- return True
19+ # return None -> don't ignore
20+ return None
2221
2322
2423@pytest .fixture (autouse = True )
You can’t perform that action at this time.
0 commit comments