Skip to content
Snippets Groups Projects

[Tests] Fix: Accept uppercase calibration type

1 unresolved thread
1 file
+ 2
4
Compare changes
  • Side-by-side
  • Inline
@@ -9,9 +9,7 @@ def pytest_addoption(parser):
default=False,
help="Start release test for all supported calibration notebooks",
)
# detectors_choices = []
# for k in ['agipd', 'jungfrau', 'pnccd', 'epix100', 'all']:
# detectors_choices += [k, k.upper()]
parser.addoption(
"--detectors",
default=["all"],
@@ -20,7 +18,7 @@ def pytest_addoption(parser):
parser.addoption(
"--calibration",
type=str,
type=str.lower,
choices=["correct", "dark", "all"],
default="all",
)
Loading