mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-05 04:41:03 -05:00
tests: Remove dbus tests.
The dbus tests require system packages on travis but that limits us to using the system provided python version which is 3.4 currently.
This commit is contained in:
parent
3772322a1d
commit
e5e3f361c2
@ -6,6 +6,7 @@ addons:
|
||||
apt:
|
||||
packages:
|
||||
- libdbus-1-dev
|
||||
- libgirepository1.0-dev
|
||||
|
||||
before_install:
|
||||
- wget https://gitlab.matrix.org/matrix-org/olm/-/archive/master/olm-master.tar.bz2
|
||||
@ -22,7 +23,7 @@ matrix:
|
||||
- python: 3.7
|
||||
env: TOXENV=coverage
|
||||
|
||||
install: pip install tox-travis
|
||||
install: pip install tox-travis gobject PyGObject dbus-python
|
||||
script: tox
|
||||
|
||||
after_success:
|
||||
|
@ -1,26 +0,0 @@
|
||||
import pytest
|
||||
from janus import Queue
|
||||
|
||||
from conftest import faker
|
||||
from pantalaimon.config import ServerConfig
|
||||
from pantalaimon.ui import Control, IdCounter
|
||||
|
||||
|
||||
class TestClass(object):
|
||||
def test_server_account_storing(self, panstore):
|
||||
domain = faker.domain_name()
|
||||
|
||||
server_list = [
|
||||
ServerConfig(
|
||||
domain,
|
||||
faker.url("http"),
|
||||
faker.ipv4(),
|
||||
8080,
|
||||
)
|
||||
]
|
||||
|
||||
queue = Queue()
|
||||
counter = IdCounter()
|
||||
control = Control(queue.sync_q, panstore, server_list, counter)
|
||||
|
||||
assert control.ListServers() == {domain: []}
|
Loading…
Reference in New Issue
Block a user