mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-18 06:18:06 +00:00
rename unittests to unit change TradeRecords.get_csv_records and TradeRecord.get_json_records methods to non-async.
18 lines
469 B
Python
18 lines
469 B
Python
import pytest
|
|
|
|
from aiomql.lib.terminal import Terminal
|
|
|
|
|
|
class TestTerminal:
|
|
@pytest.fixture(scope='class', autouse=True)
|
|
async def init_terminal(self):
|
|
terminal = Terminal()
|
|
init = await terminal.initialize()
|
|
return init, terminal
|
|
|
|
async def test_terminal(self, init_terminal):
|
|
init, terminal = init_terminal
|
|
assert init is True
|
|
assert terminal.connected is True
|
|
assert terminal.version is not None
|