22from faker import Faker
33from labelbox .schema .media_type import MediaType
44from labelbox import ProjectRole
5- import time
65
76faker = Faker ()
87
@@ -58,8 +57,6 @@ def project_invite(client, test_project, dummy_email):
5857
5958def test_get_organization_invites (client , org_invite ):
6059 """Test retrieving all organization invites"""
61- # Add a small delay to ensure invite is created
62- time .sleep (1 )
6360
6461 organization = client .get_organization ()
6562 invites = organization .get_invites ()
@@ -73,8 +70,6 @@ def test_get_organization_invites(client, org_invite):
7370
7471def test_get_project_invites (client , test_project , project_invite ):
7572 """Test retrieving project-specific invites"""
76- # Add a small delay to ensure invite is created
77- time .sleep (1 )
7873
7974 organization = client .get_organization ()
8075 project_invites = organization .get_project_invites (test_project .uid )
@@ -100,9 +95,6 @@ def test_cancel_invite(client, dummy_email):
10095 organization = client .get_organization ()
10196 organization .invite_user (dummy_email , role )
10297
103- # Add a small delay to ensure invite is created
104- time .sleep (1 )
105-
10698 # Find the actual invite by email
10799 invites = organization .get_invites ()
108100 found_invite = next (
@@ -131,9 +123,6 @@ def test_cancel_project_invite(client, test_project, dummy_email):
131123 dummy_email , roles ["NONE" ], project_roles = [project_role ]
132124 )
133125
134- # Add a small delay to ensure invite is created
135- time .sleep (1 )
136-
137126 # Find the actual invite by email
138127 invites = organization .get_invites ()
139128 found_invite = next (
@@ -172,9 +161,6 @@ def test_project_invite_after_project_deletion(client, dummy_email):
172161 dummy_email , roles ["NONE" ], project_roles = [project_role1 , project_role2 ]
173162 )
174163
175- # Add a small delay to ensure invite is created
176- time .sleep (1 )
177-
178164 # Delete one project
179165 project1 .delete ()
180166
0 commit comments