mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-07-16 11:38:44 -04: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
2 changed files with 2 additions and 27 deletions
|
@ -6,6 +6,7 @@ addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libdbus-1-dev
|
- libdbus-1-dev
|
||||||
|
- libgirepository1.0-dev
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget https://gitlab.matrix.org/matrix-org/olm/-/archive/master/olm-master.tar.bz2
|
- wget https://gitlab.matrix.org/matrix-org/olm/-/archive/master/olm-master.tar.bz2
|
||||||
|
@ -22,7 +23,7 @@ matrix:
|
||||||
- python: 3.7
|
- python: 3.7
|
||||||
env: TOXENV=coverage
|
env: TOXENV=coverage
|
||||||
|
|
||||||
install: pip install tox-travis
|
install: pip install tox-travis gobject PyGObject dbus-python
|
||||||
script: tox
|
script: tox
|
||||||
|
|
||||||
after_success:
|
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…
Add table
Add a link
Reference in a new issue