Repository: DKISTDC/dkist (language: python)

Issue:
Enable passing datasets to tests via command line
Adds a pytest cli option `--ds` which accepts a comma-separated list of strings that can be parsed by `load_dataset()`. If present, these are passed to any test with the `accept_cli_datasets` marker in place of the fixture dataset(s) actually specified for that test in the code.

The aim here is to be able to run arbitrary datasets through the test suite to more easily find issues with new data.


Discussion / hints:
## [CodSpeed Performance Report](https://codspeed.io/DKISTDC/dkist/branches/SolarDrew:tests)

### Merging #439 will **not alter performance**

<sub>Comparing <code>SolarDrew:tests</code> (f277cea) with <code>main</code> (a34aaf4)</sub>



### Summary

`✅ 9` untouched benchmarks





Thanks Drew

Fix patch:
diff --git a/changelog/440.bugfix.rst b/changelog/440.bugfix.rst
new file mode 100644
index 00000000..49ce5d4f
--- /dev/null
+++ b/changelog/440.bugfix.rst
@@ -0,0 +1,1 @@
+Fix mark argument parsing in the new pytest hook.


Test patch:
diff --git a/dkist/conftest.py b/dkist/conftest.py
index 12986337..0f8b7c9b 100644
--- a/dkist/conftest.py
+++ b/dkist/conftest.py
@@ -362,6 +362,6 @@ def pytest_runtest_call(item):
         if ds:
             item.funcargs[replace_arg] = load_dataset(ds)
         if tds:
-            item.funcargs[tdsmark.args[0]] = load_dataset(tds)
+            item.funcargs[replace_arg] = load_dataset(tds)
 
     yield item