From 20d956f4063de30042a806e1ffd46488cca9fe0a Mon Sep 17 00:00:00 2001 From: Peter Gadfort Date: Fri, 30 Aug 2024 10:20:27 -0400 Subject: [PATCH 1/2] add pytest plugins to help with ready and valid mode testing --- setup.py | 3 +++ switchboard/pytest_plugin.py | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 switchboard/pytest_plugin.py diff --git a/setup.py b/setup.py index 9fb3caed..bb7175ab 100644 --- a/setup.py +++ b/setup.py @@ -84,6 +84,9 @@ def parse_reqs(): 'console_scripts': [ 'sbtcp=switchboard.sbtcp:main', 'switchboard=switchboard.switchboard:main' + ], + 'pytest11': [ + 'switchboard=switchboard.pytest_plugin' ] }, cmdclass={"build_ext": build_ext}, diff --git a/switchboard/pytest_plugin.py b/switchboard/pytest_plugin.py new file mode 100644 index 00000000..30fcf330 --- /dev/null +++ b/switchboard/pytest_plugin.py @@ -0,0 +1,11 @@ +import pytest + + +@pytest.fixture(params=(0, 1, 2)) +def sb_umi_ready_mode(request): + return request.param + + +@pytest.fixture(params=(0, 1, 2)) +def sb_umi_valid_mode(request): + return request.param From 1d67bd65dc3a3a613369dd475adad5bf6077468d Mon Sep 17 00:00:00 2001 From: Peter Gadfort Date: Fri, 30 Aug 2024 10:20:42 -0400 Subject: [PATCH 2/2] add .venv to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2b551f70..323cef97 100644 --- a/.gitignore +++ b/.gitignore @@ -45,6 +45,7 @@ queue-* # Python cache files __pycache__ +.venv/ # act secrets .secrets