Skip to content

Commit

Permalink
Add module imports to Pyodide test to cover we can install without op…
Browse files Browse the repository at this point in the history
…tional deps
  • Loading branch information
miohtama committed Oct 17, 2024
1 parent 8168818 commit 1512a99
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,19 @@ def test_create_pyodide_client_detect():
env = JupyterEnvironment()
env.clear_configuration()
client = Client.create_jupyter_client(pyodide=True)

# See we can import important modules
# Before we had:
# ModuleNotFound: eth_defi when importing lending
import tradingstrategy.utils.token_filter
import tradingstrategy.lending
import tradingstrategy.stablecoin
import tradingstrategy.utils.wrangle
import tradingstrategy.pair
import tradingstrategy.candle
import tradingstrategy.liquidity
import tradingstrategy.clmm
import tradingstrategy.exchange
assert isinstance(client, Client)


Expand Down

0 comments on commit 1512a99

Please sign in to comment.