File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed
Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 4646 pre-commit run --all-files
4747
4848 - name : Run unit tests
49- run : poetry run pytest
49+ run : poetry run pytest --no-device
5050
5151 build :
5252 # needs: test
Original file line number Diff line number Diff line change 11def pytest_addoption (parser ):
22 parser .addoption ("--reader" , action = "store" )
3+ parser .addoption ("--no-device" , action = "store_true" )
Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ def setup(self):
237237
238238@pytest .fixture (scope = "session" , autouse = True )
239239def dev_manager (pytestconfig , request ):
240+ if pytestconfig .getoption ("no_device" ):
241+ pytest .skip ("Skip device tests" )
242+
240243 reader = pytestconfig .getoption ("reader" )
241244 capmanager = request .config .pluginmanager .getplugin ("capturemanager" )
242245 manager = DeviceManager (capmanager , reader )
You can’t perform that action at this time.
0 commit comments