Skip to content

Commit

Permalink
Add a local test to checking optional deps installation
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Oct 25, 2022
1 parent d9bebb4 commit b775523
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ npm install -g ganache

Make sure you install with the optional QSTrader dependency:

```
```shell
poetry install -E qstrader -E web-server -E execution
```

Testing "no dependencies" installation for Pyodide:

```shell
pip install tox tox-poetry
tox
```

## Running

To run the tests:
Expand Down
1 change: 1 addition & 0 deletions tests/test_optional_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def test_optional_dependencies():
See .github/workflows/client-side.yml
"""

# Make sure we can import core modules under Pyodide
from tradeexecutor.state import state
from tradeexecutor.statistics import core
from tradeexecutor.visual import single_pair
Expand Down
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[tox]
envlist = py10

[testenv]
commands =
pytest tests/test_optional_dependencies.py

0 comments on commit b775523

Please sign in to comment.