Skip to content

Commit 2615291

Browse files
committed
Update tests delaysd
1 parent d2413be commit 2615291

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

tests/integration/annotations/test_upload_annotations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ def setUp(self, *args, **kwargs):
160160
],
161161
)
162162
project = sa.controller.get_project(self.PROJECT_NAME)
163-
time.sleep(4)
163+
# todo check
164+
# time.sleep(4)
164165
with open(self.EDITOR_TEMPLATE_PATH) as f:
165166
res = sa.controller.service_provider.projects.attach_editor_template(
166167
sa.controller.team, project, template=json.load(f)

tests/integration/items/test_attach_items.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ def test_long_names_limitation_pass(self):
106106
}
107107
)
108108
sa.attach_items(self.PROJECT_NAME, csv_json)
109-
import time
110-
111-
time.sleep(4)
112109
items = sa.list_items(self.PROJECT_NAME, name__in=[i["name"] for i in csv_json])
113110

114111
assert {i["name"] for i in items} == {i["name"] for i in csv_json}

tests/integration/items/test_item_context.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ def setUp(self, *args, **kwargs):
3232
)
3333
team = sa.controller.team
3434
project = sa.controller.get_project(self.PROJECT_NAME)
35-
time.sleep(10)
35+
# todo check
36+
# time.sleep(10)
3637
with open(self.EDITOR_TEMPLATE_PATH) as f:
3738
res = sa.controller.service_provider.projects.attach_editor_template(
3839
team, project, template=json.load(f)
@@ -53,7 +54,7 @@ def _base_test(self, path, item):
5354
assert ic.get_component_value("component_id_1") is None
5455
ic.set_component_value("component_id_1", "value")
5556
with self.assertRaisesRegexp(
56-
FileChangedError, "The file has changed and overwrite is set to False."
57+
FileChangedError, "The file has changed and overwrite is set to False."
5758
):
5859
with sa.item_context(path, item, overwrite=False) as ic:
5960
assert ic.get_component_value("component_id_1") == "value"
@@ -65,12 +66,12 @@ def _base_test(self, path, item):
6566
def test_overwrite_false(self):
6667
# test root by folder name
6768
self._attach_item(self.PROJECT_NAME, "dummy")
68-
time.sleep(2)
69+
# time.sleep(2)
6970
self._base_test(self.PROJECT_NAME, "dummy")
7071

7172
folder = sa.create_folder(self.PROJECT_NAME, folder_name="folder")
7273
# test from folder by project and folder names
73-
time.sleep(2)
74+
# time.sleep(2)
7475
path = f"{self.PROJECT_NAME}/folder"
7576
self._attach_item(path, "dummy")
7677
self._base_test(path, "dummy")
@@ -107,7 +108,7 @@ def setUp(self, *args, **kwargs):
107108
)
108109
team = sa.controller.team
109110
project = sa.controller.get_project(self.PROJECT_NAME)
110-
time.sleep(10)
111+
# time.sleep(10)
111112
with open(self.EDITOR_TEMPLATE_PATH) as f:
112113
res = sa.controller.service_provider.projects.attach_editor_template(
113114
team, project, template=json.load(f)

tests/integration/items/test_list_items.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ def setUp(self, *args, **kwargs):
9292
],
9393
)
9494
project = sa.controller.get_project(self.PROJECT_NAME)
95-
time.sleep(10)
9695
with open(self.EDITOR_TEMPLATE_PATH) as f:
9796
res = sa.controller.service_provider.projects.attach_editor_template(
9897
sa.controller.team, project, template=json.load(f)

tests/integration/work_management/test_user_custom_fields.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def test_list_users(self):
142142
custom_field_name="SDK_test_date_picker",
143143
value=value,
144144
)
145-
time.sleep(1)
146145
scapegoat = sa.list_users(
147146
include=["custom_fields"],
148147
email=scapegoat["email"],

0 commit comments

Comments
 (0)