Example #1
0
def test_tion_api_wait_for_task_returns_false_on_bad_task_id(api: TionApi):
    assert api.wait_for_task(
        "asdf") is False, "Must return False on lack of bad task_id!"
    sleep(TESTS_DELAY)  # let the server "rest"
Example #2
0
def test_tion_api_wait_for_task_returns_false_on_timeout_0_6(api: TionApi):
    assert api.wait_for_task(
        "asdf", max_time=0.6) is False, "Must return False on timeout!"
    sleep(TESTS_DELAY)  # let the server "rest"