mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-16 21:38:06 +00:00
v4.0.14b
This commit is contained in:
@@ -15,6 +15,6 @@ class TestAccount:
|
||||
assert self.account.connected is True
|
||||
|
||||
async def test_account_info(self):
|
||||
acc_info = await self.account.mt5.account_info()
|
||||
acc_info = await self.account.mt5.account_info
|
||||
assert acc_info.login == self.account.login
|
||||
assert acc_info.server == self.account.server
|
||||
|
||||
@@ -3,7 +3,7 @@ from math import ceil
|
||||
from aiomql import TimeFrame
|
||||
from aiomql.core.backtesting import BackTestEngine
|
||||
from aiomql.core.backtesting.get_data import GetData
|
||||
from aiomql._utils import round_down
|
||||
from aiomql.utils import round_down
|
||||
from aiomql.core.constants import OrderType, TradeAction
|
||||
|
||||
import pytest
|
||||
|
||||
@@ -18,7 +18,7 @@ class TestConfig:
|
||||
assert config.backtest_engine is engine
|
||||
|
||||
def test_account_info(self, config):
|
||||
account_info = config.account_info()
|
||||
account_info = config.account_info
|
||||
assert isinstance(account_info, dict)
|
||||
assert "login" in account_info
|
||||
assert "password" in account_info
|
||||
|
||||
Reference in New Issue
Block a user