mirror of
https://gitlab.com/openlp/openlp_api_tester.git
synced 2024-12-25 11:14:08 +00:00
Timing Cleanups
This commit is contained in:
parent
3f232728a1
commit
670c658dc6
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
|
@ -82,5 +82,4 @@ step17:
|
|||||||
payload:
|
payload:
|
||||||
plugin: bibles
|
plugin: bibles
|
||||||
step18:
|
step18:
|
||||||
delay: 0.1
|
|
||||||
name: load_service_sequential
|
name: load_service_sequential
|
||||||
|
@ -82,5 +82,4 @@ step17:
|
|||||||
payload:
|
payload:
|
||||||
plugin: bibles
|
plugin: bibles
|
||||||
step18:
|
step18:
|
||||||
delay: 0.1
|
|
||||||
name: load_service_random
|
name: load_service_random
|
||||||
|
@ -13,11 +13,9 @@ step3:
|
|||||||
payload:
|
payload:
|
||||||
plugin: media
|
plugin: media
|
||||||
step4:
|
step4:
|
||||||
delay: 0.1
|
|
||||||
name: load_service_sequential
|
name: load_service_sequential
|
||||||
step5:
|
step5:
|
||||||
delay: 30
|
delay: 30
|
||||||
name: flush_pending
|
name: flush_pending
|
||||||
step6:
|
step6:
|
||||||
delay: 0.2
|
|
||||||
name: media_pause
|
name: media_pause
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
process_name: Pause Media
|
process_name: Pause Media
|
||||||
step1:
|
step1:
|
||||||
delay: 0.2
|
|
||||||
name: media_pause
|
name: media_pause
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
process_name: Play Media
|
process_name: Play Media
|
||||||
step1:
|
step1:
|
||||||
delay: 0.2
|
|
||||||
name: media_play
|
name: media_play
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
process_name: Stop Media
|
process_name: Stop Media
|
||||||
step1:
|
step1:
|
||||||
delay: 0.2
|
|
||||||
name: media_stop
|
name: media_stop
|
@ -22,5 +22,4 @@ step5:
|
|||||||
payload:
|
payload:
|
||||||
plugin: bibles
|
plugin: bibles
|
||||||
step6:
|
step6:
|
||||||
delay: 0.1
|
|
||||||
name: load_service_sequential
|
name: load_service_sequential
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
@ -26,8 +25,7 @@ import yaml
|
|||||||
from collections import deque
|
from collections import deque
|
||||||
from websocket import create_connection
|
from websocket import create_connection
|
||||||
|
|
||||||
from test_api.apitest.logger import print_error, print_ok, print_info
|
from test_api.apitest.logger import print_error, print_ok, print_info, print_debug
|
||||||
from test_api.apitest.logger import print_debug
|
|
||||||
|
|
||||||
from test_api.apitest.callbacks import * # noqa E403
|
from test_api.apitest.callbacks import * # noqa E403
|
||||||
|
|
||||||
@ -115,7 +113,6 @@ class RunTestsController(object):
|
|||||||
a = parser.parse_args()
|
a = parser.parse_args()
|
||||||
with open(a.rargs[0], 'r') as file:
|
with open(a.rargs[0], 'r') as file:
|
||||||
commands = yaml.load(file, Loader=yaml.FullLoader)
|
commands = yaml.load(file, Loader=yaml.FullLoader)
|
||||||
|
|
||||||
for step in commands:
|
for step in commands:
|
||||||
if step == 'process_name':
|
if step == 'process_name':
|
||||||
print_info(f'Processing file {commands[step]}')
|
print_info(f'Processing file {commands[step]}')
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
@ -48,7 +47,7 @@ class Task(object):
|
|||||||
try:
|
try:
|
||||||
human_delay(self.request['delay'])
|
human_delay(self.request['delay'])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
human_delay(0.3)
|
||||||
try:
|
try:
|
||||||
self.caller.check_websocket_changes(self.request['max'], self.request['min'])
|
self.caller.check_websocket_changes(self.request['max'], self.request['min'])
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# OpenLP - Open Source Lyrics Projection #
|
# OpenLP - Open Source Lyrics Projection #
|
||||||
# ---------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------- #
|
||||||
|
Loading…
Reference in New Issue
Block a user