File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 433433 "pytest==7.0.1" ,
434434 "pytest-cov" ,
435435 "pytest-order" ,
436+ "pytest-xdist" ,
436437 "dirty-equals" ,
437438 # install dbt dependency
438439 "collate-dbt-artifacts-parser" ,
Original file line number Diff line number Diff line change 2727_mock_health .start ()
2828
2929
30+ @fixture (scope = "session" )
31+ def worker_id (request ):
32+ """Fallback worker_id fixture for when pytest-xdist is not installed.
33+
34+ When xdist is active, request.config.workerinput contains the worker id.
35+ Otherwise, return "master" (single-process mode).
36+ """
37+ if hasattr (request .config , "workerinput" ):
38+ return request .config .workerinput ["workerid" ]
39+ return "master"
40+
41+
3042@fixture (scope = "session" , autouse = True )
3143def register_sqlite_math_functions ():
3244 """
You can’t perform that action at this time.
0 commit comments