Flake 8
This commit is contained in:
parent
5cf9523063
commit
52a603e21e
|
@ -257,7 +257,7 @@ def search_and_live(rtc: RunTestsController, plugin: str, count: int) -> None:
|
|||
random_service = [random.randint(1, limit) for itr in range(count)]
|
||||
for pos in random_service:
|
||||
item = items[pos - 1]
|
||||
ret = requests.post(base_url + f'live', json=dict(id=item[0]))
|
||||
ret = requests.post(base_url + 'live', json=dict(id=item[0]))
|
||||
assert ret.status_code == 204, f'{ret.status_code} returned from add'
|
||||
human_delay()
|
||||
|
||||
|
@ -276,7 +276,7 @@ def search_and_add(rtc: RunTestsController, plugin: str, count: int) -> None:
|
|||
assert ret.status_code == 200, f'{ret.status_code} returned from searcg'
|
||||
items = json.loads(ret.text)
|
||||
if items:
|
||||
ret = requests.post(base_url + f'add', json=dict(id=items[0][0]))
|
||||
ret = requests.post(base_url + 'add', json=dict(id=items[0][0]))
|
||||
assert ret.status_code == 204, f'{ret.status_code} returned from add'
|
||||
human_delay()
|
||||
else:
|
||||
|
@ -298,7 +298,7 @@ def search_and_add(rtc: RunTestsController, plugin: str, count: int) -> None:
|
|||
random_service = [random.randint(1, limit) for itr in range(count)]
|
||||
for pos in random_service:
|
||||
item = items[pos - 1]
|
||||
ret = requests.post(base_url + f'add', json=dict(id=item[0]))
|
||||
ret = requests.post(base_url + 'add', json=dict(id=item[0]))
|
||||
assert ret.status_code == 204, f'{ret.status_code} returned from add'
|
||||
human_delay()
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ def start() -> None:
|
|||
rtc = RunTestsController(op_address, op_http_port, op_ws_port)
|
||||
rtc.connect()
|
||||
rtc.marshal_full()
|
||||
#nrtc.marshal_media()
|
||||
# nrtc.marshal_media()
|
||||
print_text('Finished running tests')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue