mirror of
https://gitlab.com/openlp/openlp_api_tester.git
synced 2024-12-25 11:14:08 +00:00
fix errors
This commit is contained in:
parent
8c0769f93f
commit
a0cfa10278
@ -2,4 +2,3 @@
|
|||||||
process_name: live_item
|
process_name: live_item
|
||||||
step1:
|
step1:
|
||||||
name: play_live_items
|
name: play_live_items
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ def service_item_show(rtc: object, payload: dict) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def play_live_items(rtc: object) -> None:
|
def play_live_items(rtc: object) -> None:
|
||||||
print_text(f'Play_live_items')
|
print_text('Play_live_items')
|
||||||
ret = requests.get(rtc.base_url + 'controller/live-items')
|
ret = requests.get(rtc.base_url + 'controller/live-items')
|
||||||
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
|
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
|
||||||
i = 0
|
i = 0
|
||||||
@ -163,13 +163,11 @@ def play_live_items(rtc: object) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def play_live_item(rtc: object) -> None:
|
def play_live_item(rtc: object) -> None:
|
||||||
print_text(f'Play_live_item')
|
print_text('Play_live_item')
|
||||||
ret = requests.get(rtc.base_url + 'controller/live-item')
|
ret = requests.get(rtc.base_url + 'controller/live-item')
|
||||||
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
|
assert ret.status_code == 200, f'{ret.status_code} returned from live_item'
|
||||||
i = 0
|
|
||||||
aa = json.loads(ret.text)
|
aa = json.loads(ret.text)
|
||||||
bb = 1
|
print_text(aa)
|
||||||
|
|
||||||
|
|
||||||
def controller_item_show(rtc: object, payload: dict) -> None:
|
def controller_item_show(rtc: object, payload: dict) -> None:
|
||||||
id = payload['id']
|
id = payload['id']
|
||||||
|
Loading…
Reference in New Issue
Block a user