File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6161 "pytest-cov" ,
6262 "pytest-timeout" ,
6363]
64+ UNIT_TEST_EXTERNAL_DEPENDENCIES : List [str ] = []
6465UNIT_TEST_DEPENDENCIES : List [str ] = []
6566UNIT_TEST_EXTRAS : List [str ] = ["tests" ]
6667UNIT_TEST_EXTRAS_BY_PYTHON : Dict [str , List [str ]] = {
@@ -254,10 +255,14 @@ def run_unit(session, install_test_extra):
254255
255256
256257@nox .session (python = ALL_PYTHON )
257- def unit (session ):
258+ @nox .parametrize ("test_extra" , [True , False ])
259+ def unit (session , test_extra ):
258260 if session .python in ("3.7" , "3.8" , "3.9" ):
259261 session .skip ("Python 3.9 and below are not supported" )
260- run_unit (session , install_test_extra = True )
262+ if test_extra :
263+ run_unit (session , install_test_extra = test_extra )
264+ else :
265+ unit_noextras (session )
261266
262267
263268@nox .session (python = ALL_PYTHON [- 1 ])
You can’t perform that action at this time.
0 commit comments