@@ -294,8 +294,15 @@ def core_tests(session: nox.Session) -> None:
294294 )
295295 try :
296296 session .install ("-r" , "requirements.txt" )
297- session .install (f"{ REPO_ROOT } [azure-blob-payloads]" , "aiohttp" )
298- session .run ("pytest" , "tests/durabletask" , "-m" , "not dts" , "--verbose" )
297+ session .install ("-e" , f"{ REPO_ROOT } [azure-blob-payloads]" , "aiohttp" )
298+ targets = session .posargs or ("tests/durabletask" ,)
299+ session .run (
300+ "pytest" ,
301+ * targets ,
302+ "-m" ,
303+ "not dts" ,
304+ "--verbose" ,
305+ )
299306 finally :
300307 _stop_process (azurite )
301308
@@ -315,7 +322,8 @@ def azuremanaged_tests(session: nox.Session) -> None:
315322 "-e" ,
316323 str (AZUREMANAGED ),
317324 )
318- session .run ("pytest" , "tests/durabletask-azuremanaged" , "-m" , "dts" , "--verbose" )
325+ targets = session .posargs or ("tests/durabletask-azuremanaged" ,)
326+ session .run ("pytest" , * targets , "-m" , "dts" , "--verbose" )
319327 finally :
320328 _stop_dts_emulator (container_name )
321329
@@ -324,12 +332,13 @@ def azuremanaged_tests(session: nox.Session) -> None:
324332def functions_unit (session : nox .Session ) -> None :
325333 """Run the azure-functions-durable unit tests (no func/azurite required)."""
326334 session .install ("-r" , "requirements.txt" )
327- _install_packages (session )
335+ _install_packages (session , editable = True )
328336 session .install ("pytest" )
337+ targets = session .posargs or ("tests/azure-functions-durable" ,)
329338 session .run (
330- "pytest" , "tests/azure-functions-durable" ,
339+ "pytest" , * targets ,
331340 "-m" , "not dts and not azurite and not functions_e2e" ,
332- * session . posargs )
341+ )
333342
334343
335344@nox .session (python = ["3.13" ])
@@ -373,10 +382,11 @@ def functions_e2e(session: nox.Session) -> None:
373382 session .install ("pytest" )
374383 for app in E2E_APPS :
375384 _link_app_venv (session , E2E_APPS_DIR / app )
385+ targets = session .posargs or ("tests/azure-functions-durable/e2e" ,)
376386 session .run (
377- "pytest" , "tests/azure-functions-durable/e2e" ,
387+ "pytest" , * targets ,
378388 "-m" , "functions_e2e" ,
379- * session . posargs )
389+ )
380390 finally :
381391 session .log (
382392 "Functions host logs are available at "
0 commit comments