From b392d41b0141d187d682fc6993b40ce6893d8e00 Mon Sep 17 00:00:00 2001 From: "Pawel.Paprocki" Date: Thu, 18 Mar 2021 17:08:14 +0100 Subject: [PATCH] [EGD-6076] Fix test_send_message fails fix for function erase_all_templates --- test/pytest/test_send_message.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/pytest/test_send_message.py b/test/pytest/test_send_message.py index 0721aea620b78503a4d9e28bbbc30f4e78f206ef..0f721c86171b0f2d16746556b5e665b3669ac057 100644 --- a/test/pytest/test_send_message.py +++ b/test/pytest/test_send_message.py @@ -8,7 +8,7 @@ from harness.interface.defs import key_codes, SMSType, status from harness.interface.CDCSerial import Keytype # time for message to leave the sending queue -extra_time_to_send_message = 40 +extra_time_to_send_message = 50 def check_for_sent(old_messages,harness, sms_text, phone_number,timeout): local_timeout = copy.deepcopy(timeout) @@ -35,11 +35,11 @@ def erase_all_templates(harness): count = ret["body"]["count"] # getting all templates - body = {"category": "template", "limit": count} + body = {"category": "template", "limit": count, "offset": 0} ret = harness.endpoint_request("messages", "get", body) assert ret["status"] == status["OK"] - assert len(ret["body"]["entries"]) == count + assert ret["body"]["totalCount"] == count for template in ret["body"]["entries"]: body = {"category": "template", "templateID": template["templateID"]}