mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 04:53:31 +00:00
edits to tests
add more tests to higher. added opts to tests. removed delay, max_polls from runmany, not required for these tests.
This commit is contained in:
18
__main__.py
18
__main__.py
@@ -1,10 +1,20 @@
|
||||
import vban_cmd
|
||||
from time import sleep
|
||||
|
||||
def main():
|
||||
with vban_cmd.connect('potato', ip='ws.local') as vban:
|
||||
for i in range(100):
|
||||
print(vban.bus[3].levels.all)
|
||||
with vban_cmd.connect('potato', ip=ip, port=port, streamname=streamname, bps=bps, channel=channel) as vban:
|
||||
for param in ['A1', 'A2', 'A3', 'A4', 'A5', 'B1', 'B2', 'B3', 'mono', 'mute']:
|
||||
setattr(vban.strip[0], param, True)
|
||||
print(getattr(vban.strip[0], param))
|
||||
setattr(vban.strip[0], param, False)
|
||||
print(getattr(vban.strip[0], param))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
kind_id = 'potato'
|
||||
ip = 'ws.local'
|
||||
port=6980
|
||||
streamname = 'testing'
|
||||
bps = 57600
|
||||
channel=3
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user