Skip to content

Commit

Permalink
[Binance] Fix spot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Sep 18, 2021
1 parent d2b58b4 commit b668d1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
python start.py tentacles --install --location "../any_platform.zip" --all
- name: Compile project
env:
BINANCE_API_KEY: ${{ secrets.BINANCE_API_KEY }}
BINANCE_API_SECRET: ${{ secrets.BINANCE_API_SECRET }}
run: |
cd OctoBot
python setup.py build_ext --inplace
Expand Down
7 changes: 5 additions & 2 deletions Trading/Exchange/binance/tests/test_sandbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import octobot_commons.tests as commons_tests
import octobot_commons.constants as commons_constants
import octobot_trading.util.test_tools.spot_rest_exchange_test_tools as spot_rest_exchange_test_tools
import octobot_commons.configuration as configuration
from ...binance import Binance

# All test coroutines will be treated as marked.
Expand All @@ -29,8 +30,10 @@
async def test_spot_rest():
config = commons_tests.load_test_config()
config[commons_constants.CONFIG_EXCHANGES][Binance.get_name()] = {
commons_constants.CONFIG_EXCHANGE_KEY: os.getenv(f"{Binance.get_name()}_API_KEY".upper()),
commons_constants.CONFIG_EXCHANGE_SECRET: os.getenv(f"{Binance.get_name()}_API_SECRET".upper())
commons_constants.CONFIG_EXCHANGE_KEY: configuration.encrypt(
os.getenv(f"{Binance.get_name()}_API_KEY".upper())).decode(),
commons_constants.CONFIG_EXCHANGE_SECRET: configuration.encrypt(
os.getenv(f"{Binance.get_name()}_API_SECRET".upper())).decode()
}
config[commons_constants.CONFIG_TRADER][commons_constants.CONFIG_ENABLED_OPTION] = True
config[commons_constants.CONFIG_SIMULATOR][commons_constants.CONFIG_ENABLED_OPTION] = False
Expand Down

0 comments on commit b668d1c

Please sign in to comment.