Timing Cleanups

This commit is contained in:
Tim 2020-10-04 19:47:01 +01:00
parent 3f232728a1
commit 670c658dc6
No known key found for this signature in database
GPG Key ID: 3D454289AF831A6D
13 changed files with 4 additions and 22 deletions

View File

@ -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 #
# ---------------------------------------------------------------------- # # ---------------------------------------------------------------------- #

View File

@ -82,5 +82,4 @@ step17:
payload: payload:
plugin: bibles plugin: bibles
step18: step18:
delay: 0.1
name: load_service_sequential name: load_service_sequential

View File

@ -82,5 +82,4 @@ step17:
payload: payload:
plugin: bibles plugin: bibles
step18: step18:
delay: 0.1
name: load_service_random name: load_service_random

View File

@ -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

View File

@ -1,5 +1,4 @@
--- ---
process_name: Pause Media process_name: Pause Media
step1: step1:
delay: 0.2
name: media_pause name: media_pause

View File

@ -1,5 +1,4 @@
--- ---
process_name: Play Media process_name: Play Media
step1: step1:
delay: 0.2 name: media_play
name: media_play

View File

@ -1,5 +1,4 @@
--- ---
process_name: Stop Media process_name: Stop Media
step1: step1:
delay: 0.2 name: media_stop
name: media_stop

View File

@ -22,5 +22,4 @@ step5:
payload: payload:
plugin: bibles plugin: bibles
step6: step6:
delay: 0.1
name: load_service_sequential name: load_service_sequential

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
########################################################################## ##########################################################################
# OpenLP - Open Source Lyrics Projection # # OpenLP - Open Source Lyrics Projection #
# ---------------------------------------------------------------------- # # ---------------------------------------------------------------------- #

View File

@ -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]}')

View File

@ -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:

View File

@ -1,6 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
########################################################################## ##########################################################################
# OpenLP - Open Source Lyrics Projection # # OpenLP - Open Source Lyrics Projection #
# ---------------------------------------------------------------------- # # ---------------------------------------------------------------------- #

View File

@ -1,6 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
########################################################################## ##########################################################################
# OpenLP - Open Source Lyrics Projection # # OpenLP - Open Source Lyrics Projection #
# ---------------------------------------------------------------------- # # ---------------------------------------------------------------------- #