File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -370,15 +370,23 @@ def live_workspace(auto_datalab): # pylint: disable=redefined-outer-name
370370
371371
372372@pytest .fixture
373- def webapi_backend (auto_datalab ): # pylint: disable=redefined-outer-name,unused-argument
373+ def webapi_backend (request , auto_datalab ): # pylint: disable=redefined-outer-name,unused-argument
374374 """Function-scoped fixture providing a WebApiBackend connected to DataLab.
375375
376376 In default mode: Uses auto-started DataLab.
377377 With flags: Uses DataLab started by datalab_instance fixture.
378378
379379 Returns a WebApiBackend instance connected to DataLab.
380380 Cleans up objects before and after each test to prevent contamination.
381+
382+ Skips test if running in standalone-only mode.
381383 """
384+ # Skip if standalone-only mode (no DataLab available)
385+ if request .config .getoption ("--standalone-only" ):
386+ pytest .skip (
387+ "WebApiBackend tests require DataLab (skipped in standalone-only mode)"
388+ )
389+
382390 # pylint: disable=import-outside-toplevel
383391 from datalab_kernel .backends .webapi import WebApiBackend
384392
You can’t perform that action at this time.
0 commit comments