File tree Expand file tree Collapse file tree
packages/node/tests/scheduler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 - packages/commons
6464 - packages/evaluators
6565 - packages/node
66+ - packages/flow
6667 - packages/services
6768 - packages/tentacles_manager
6869 - packages/trading
@@ -111,9 +112,9 @@ jobs:
111112 pytest tests -n auto --dist loadfile
112113 pytest --ignore=tentacles/Trading/Exchange tentacles -n auto --dist loadfile
113114 else
114- if [ "${{ matrix.package }}" = "packages/node" ]; then
115- echo "Running node tests from root dir to allow tentacles import"
116- pytest packages/node /tests -n auto --dist loadfile
115+ if [ "${{ matrix.package }}" = "packages/node" ] || [ "${{ matrix.package }}" = "packages/flow" ] ; then
116+ echo "Running tests from root dir to allow tentacles import"
117+ pytest ${{ matrix.package }} /tests -n auto --dist loadfile
117118 else
118119 cd ${{ matrix.package }}
119120 if [ "${{ matrix.package }}" = "packages/tentacles_manager" ]; then
File renamed without changes.
Original file line number Diff line number Diff line change 3838from tests .scheduler import temp_dbos_scheduler , init_and_destroy_scheduler
3939
4040
41- IMPORTED_octobot_flow = True
41+ IMPORTED_OCTOBOT_FLOW = True
4242AUTOMATION_WORKFLOW_IMPORTED = False
4343try :
4444 import octobot_flow .entities
4545 import octobot_flow .enums
4646
4747except ImportError :
48- IMPORTED_octobot_flow = False
48+ IMPORTED_OCTOBOT_FLOW = False
4949
5050
5151@pytest .fixture
@@ -104,7 +104,7 @@ def iteration_result():
104104def required_imports (func ):
105105 @functools .wraps (func )
106106 async def wrapper (* args , ** kwargs ):
107- if not IMPORTED_octobot_flow :
107+ if not IMPORTED_OCTOBOT_FLOW :
108108 pytest .skip (reason = "octobot_flow is not installed" )
109109 return await func (* args , ** kwargs )
110110 return wrapper
You can’t perform that action at this time.
0 commit comments