File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,13 @@ def pytest_addoption(parser: Parser) -> None:
211
211
default = False ,
212
212
help = "Don't ignore tests in a local virtualenv directory" ,
213
213
)
214
+ group .addoption (
215
+ "--collect-in-build" ,
216
+ action = "store_true" ,
217
+ dest = "collect_in_build" ,
218
+ default = False ,
219
+ help = "Don't ignore builds in a local build/dist artifacts directory" ,
220
+ )
214
221
group .addoption (
215
222
"--import-mode" ,
216
223
default = "prepend" ,
@@ -460,7 +467,7 @@ def pytest_ignore_collect(collection_path: Path, config: Config) -> bool | None:
460
467
if not allow_in_venv and _in_venv (collection_path ):
461
468
return True
462
469
463
- allow_in_build = False # config.getoption("collect_in_build")
470
+ allow_in_build = config .getoption ("collect_in_build" )
464
471
if not allow_in_build and _in_build (collection_path ):
465
472
return True
466
473
You can’t perform that action at this time.
0 commit comments