mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-08-24 01:08:07 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user