Skip to content

[PLT-0] Update to dummy emails #1724

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libs/labelbox/tests/integration/schema/test_user_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def test_get_user_groups_with_creation_deletion(client):
assert len(user_groups_post_creation) == len(user_groups) + 1

# Verify that each user group has a valid ID and name
for user_group in user_groups_post_creation:
assert user_group.id is not None
assert user_group.name is not None
for ug in user_groups_post_creation:
assert ug.id is not None
assert ug.name is not None

user_group.delete()
user_group = None
Expand Down
9 changes: 6 additions & 3 deletions libs/labelbox/tests/integration/test_user_management.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from labelbox import ProjectRole
import pytest

from labelbox import ProjectRole
from faker import Faker

faker = Faker()

def test_org_invite(client, organization, environ, queries):
role = client.get_roles()['LABELER']
dummy_email = "none@labelbox.com"
dummy_email = "none+{}@labelbox.com".format("".join(faker.random_letters(26)))
invite_limit = organization.invite_limit()

if environ.value == "prod":
Expand Down Expand Up @@ -39,7 +42,7 @@ def test_org_invite(client, organization, environ, queries):
def test_project_invite(client, organization, project_pack, queries):
project_1, project_2 = project_pack
roles = client.get_roles()
dummy_email = "none1@labelbox.com"
dummy_email = "none+{}@labelbox.com".format("".join(faker.random_letters(26)))
project_role_1 = ProjectRole(project=project_1, role=roles['LABELER'])
project_role_2 = ProjectRole(project=project_2, role=roles['REVIEWER'])
invite = organization.invite_user(
Expand Down
Loading