From 4183cc68067c41cc698101462f0d8d64f2c93e59 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 4 Oct 2020 19:50:42 +0100 Subject: [PATCH] Timing Cleanups --- pause.yaml | 2 +- test_api/apitest/callbacks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pause.yaml b/pause.yaml index 0f5ba5d..62137e9 100644 --- a/pause.yaml +++ b/pause.yaml @@ -1,4 +1,4 @@ --- process_name: Pause Media step1: - name: media_pause \ No newline at end of file + name: media_pause diff --git a/test_api/apitest/callbacks.py b/test_api/apitest/callbacks.py index fafce50..0f5ab38 100644 --- a/test_api/apitest/callbacks.py +++ b/test_api/apitest/callbacks.py @@ -66,7 +66,7 @@ def search_and_add(rtc: object, payload: dict) -> None: while True: let = random.choice(string.ascii_letters) ret = requests.get(rtc.base_url + f'plugins/{plugin}/search?text={let}') - if ret.status_code == 200 and ret.text is not '[]\n': + if ret.status_code == 200 and ret.text != '[]\n': break else: let = random.choice(string.ascii_letters)