2
2
from faker import Faker
3
3
from labelbox .schema .media_type import MediaType
4
4
from labelbox import ProjectRole
5
- import time
6
5
7
6
faker = Faker ()
8
7
@@ -58,8 +57,6 @@ def project_invite(client, test_project, dummy_email):
58
57
59
58
def test_get_organization_invites (client , org_invite ):
60
59
"""Test retrieving all organization invites"""
61
- # Add a small delay to ensure invite is created
62
- time .sleep (1 )
63
60
64
61
organization = client .get_organization ()
65
62
invites = organization .get_invites ()
@@ -73,8 +70,6 @@ def test_get_organization_invites(client, org_invite):
73
70
74
71
def test_get_project_invites (client , test_project , project_invite ):
75
72
"""Test retrieving project-specific invites"""
76
- # Add a small delay to ensure invite is created
77
- time .sleep (1 )
78
73
79
74
organization = client .get_organization ()
80
75
project_invites = organization .get_project_invites (test_project .uid )
@@ -100,9 +95,6 @@ def test_cancel_invite(client, dummy_email):
100
95
organization = client .get_organization ()
101
96
organization .invite_user (dummy_email , role )
102
97
103
- # Add a small delay to ensure invite is created
104
- time .sleep (1 )
105
-
106
98
# Find the actual invite by email
107
99
invites = organization .get_invites ()
108
100
found_invite = next (
@@ -131,9 +123,6 @@ def test_cancel_project_invite(client, test_project, dummy_email):
131
123
dummy_email , roles ["NONE" ], project_roles = [project_role ]
132
124
)
133
125
134
- # Add a small delay to ensure invite is created
135
- time .sleep (1 )
136
-
137
126
# Find the actual invite by email
138
127
invites = organization .get_invites ()
139
128
found_invite = next (
@@ -172,9 +161,6 @@ def test_project_invite_after_project_deletion(client, dummy_email):
172
161
dummy_email , roles ["NONE" ], project_roles = [project_role1 , project_role2 ]
173
162
)
174
163
175
- # Add a small delay to ensure invite is created
176
- time .sleep (1 )
177
-
178
164
# Delete one project
179
165
project1 .delete ()
180
166
0 commit comments