add sync kwarg, reformat tests.

tests reformatted, add sync to tests.

add sync kwarg to vbancmd. Set for apply_profile.
This commit is contained in:
onyx-and-iris
2022-04-08 21:16:37 +01:00
parent b7b62ea2fe
commit 1c0ebfa1d1
4 changed files with 93 additions and 57 deletions

View File

@@ -1,22 +1,22 @@
import vbancmd
from vbancmd import kinds
from vbancmd.channel import Modes
import socket
from threading import Thread
_kind = 'potato'
_kind = "potato"
opts = {
'ip': 'ws.local',
'streamname': 'testing',
'port': 6990,
'bps': 0,
"ip": "ws.local",
"streamname": "testing",
"port": 6990,
"bps": 0,
"sync": True,
}
vbanrs = {kind.id: vbancmd.connect(_kind, **opts) for kind in kinds.all}
tests = vbanrs[_kind]
def setup_package():
tests.login()
def teardown_package():
tests.logout()