Skip to content

Commit 9170b6f

Browse files
committed
[CI] generate report template and test new report format
1 parent 1d1ed4b commit 9170b6f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
- name: Install tentacles from cli
4141
run: python start.py install_tentacles
4242

43+
- name: Build report templates
44+
run: |
45+
npm install
46+
npm run build
47+
4348
- name: Pytests
4449
run: pytest --cov=. --cov-config=.coveragerc --durations=0 -rw tests
4550

tests/functionnal/example_scripts/test_precomputed_vs_iteration_rsi.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
import pytest
1919
import shutil
2020
import tulipy
21+
import os
2122

2223
import octobot_script as obs
24+
import octobot_script.resources as resources
2325
import octobot_script.model.backtest_plot as backtest_plot
2426
from octobot_script.api.ploting import generate_and_show_report
2527
from tests.functionnal import one_day_btc_usdt_data
@@ -185,9 +187,6 @@ async def _reload_backtest_data(backtesting_data):
185187
async def _check_report(res):
186188
description = res.describe()
187189
assert str(res.strategy_config) in description
188-
import os
189-
import octobot_script.resources as resources
190-
191190
dist_index = resources.get_report_resource_path("dist/index.html")
192191
assert os.path.isfile(dist_index)
193192
report_result = await generate_and_show_report(res)

0 commit comments

Comments
 (0)