| name | python-tests |
|---|---|
| description | Run Python plugin tests using tox. Use when asked to run Python tests, unit tests for a plugin, or tox commands. |
Use tox from the plugin directory.
# Run tests for a plugin
cd plugins/<plugin>
tox -e py3.12tox -e py3.12 -- test.deephaven.ui.test_utils.UtilsTest.test_create_props -vplugins/uiplugins/plotly-express
- Assumes Python
.venvis already sourced (source .venv/bin/activate) - First run creates tox environment (~30s setup)
- Use
-vflag for verbose output to see individual test names - If tox env is corrupted, delete
plugins/<plugin>/.tox/and retry