From e5e3f361c26e264db0b19e3b42329662adad477c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 23 May 2019 14:47:21 +0200 Subject: [PATCH] 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. --- .travis.yml | 3 ++- tests/dbus_test.py | 26 -------------------------- 2 files changed, 2 insertions(+), 27 deletions(-) delete mode 100644 tests/dbus_test.py diff --git a/.travis.yml b/.travis.yml index 57e85a2..8717f56 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/tests/dbus_test.py b/tests/dbus_test.py deleted file mode 100644 index 3b6d0cf..0000000 --- a/tests/dbus_test.py +++ /dev/null @@ -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: []}