Files
aiomql/tests/unittests/test_terminal.py
T
Ichinga Samuel 76a947640f reorganize the library into three folders lib, contrib and core
Write unittests with pytest
Make all functions and method signatures as keyword only arguments
2024-10-06 23:20:59 +01:00

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