reorganize the library into three folders lib, contrib and core

Write unittests with pytest
Make all functions and method signatures as keyword only arguments
This commit is contained in:
Ichinga Samuel
2024-10-06 23:20:59 +01:00
parent 9b55214d1a
commit 76a947640f
68 changed files with 1439 additions and 817 deletions
+17
View File
@@ -0,0 +1,17 @@
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