mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-05 04:41:03 -05:00
tests: Add initial dbus tests.
This commit is contained in:
parent
25283129a9
commit
6dc126d03c
16
tests/dbus_test.py
Normal file
16
tests/dbus_test.py
Normal file
@ -0,0 +1,16 @@
|
||||
import pytest
|
||||
from janus import Queue
|
||||
|
||||
from conftest import faker
|
||||
from pantalaimon.ui import Control, Devices, IdCounter
|
||||
|
||||
|
||||
class TestClass(object):
|
||||
def test_server_account_storing(self):
|
||||
users = [(faker.mx_id(), faker.device_id())]
|
||||
|
||||
queue = Queue()
|
||||
counter = IdCounter()
|
||||
control = Control(queue.sync_q, users, counter)
|
||||
|
||||
assert control.ListUsers() == users
|
Loading…
Reference in New Issue
Block a user