File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,13 @@ def pytest_addoption(parser: Parser) -> None:
218
218
default = False ,
219
219
help = "Don't ignore tests in a local virtualenv directory" ,
220
220
)
221
+ group .addoption (
222
+ "--collect-in-build" ,
223
+ action = "store_true" ,
224
+ dest = "collect_in_build" ,
225
+ default = False ,
226
+ help = "Don't ignore builds in a local build/dist artifacts directory" ,
227
+ )
221
228
group .addoption (
222
229
"--import-mode" ,
223
230
default = "prepend" ,
@@ -466,7 +473,7 @@ def pytest_ignore_collect(collection_path: Path, config: Config) -> bool | None:
466
473
if not allow_in_venv and _in_venv (collection_path ):
467
474
return True
468
475
469
- allow_in_build = False # config.getoption("collect_in_build")
476
+ allow_in_build = config .getoption ("collect_in_build" )
470
477
if not allow_in_build and _in_build (collection_path ):
471
478
return True
472
479
You can’t perform that action at this time.
0 commit comments