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:
Damir Jelić 2019-05-23 14:47:21 +02:00
parent 3772322a1d
commit e5e3f361c2
2 changed files with 2 additions and 27 deletions

View File

@ -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:

View File

@ -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: []}