Skip to content

Commit b21eba0

Browse files
mrobers1982claude
andcommitted
Fix bulk_assign tests to not depend on removed member mutation
test_bulk_assign_data_rows and test_bulk_assign_data_rows_with_allowed_statuses relied on the project_based_user fixture, which creates an org member via the addMembersToOrganization mutation. That mutation was removed from the API back in intelligence #11829 (a2bdf13f69, 2022-11-15), so the fixture has been erroring at setup ever since (masked by the chronically-red integration suite). There is no public-API replacement that yields an assignable member without email-invite acceptance (invite_user returns a pending Invite, not a User). bulk_assign_data_rows only needs a valid member uid, so assign to the current authenticated user (client.get_user()) instead. This keeps the live bulk_assign_data_rows feature under test rather than dropping coverage. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b28a12c commit b21eba0

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

libs/labelbox/tests/integration/test_bulk_assign.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
from labelbox.schema.task_assignment_status import TaskAssignmentStatus
22

33

4-
def test_bulk_assign_data_rows(
5-
configured_batch_project_with_label, project_based_user
6-
):
4+
def test_bulk_assign_data_rows(configured_batch_project_with_label, client):
75
project, _, data_row, _ = configured_batch_project_with_label
8-
user = project_based_user
6+
user = client.get_user()
97

108
result = project.bulk_assign_data_rows(
119
user_id=user.uid,
@@ -15,10 +13,10 @@ def test_bulk_assign_data_rows(
1513

1614

1715
def test_bulk_assign_data_rows_with_allowed_statuses(
18-
configured_batch_project_with_label, project_based_user
16+
configured_batch_project_with_label, client
1917
):
2018
project, _, data_row, _ = configured_batch_project_with_label
21-
user = project_based_user
19+
user = client.get_user()
2220

2321
result = project.bulk_assign_data_rows(
2422
user_id=user.uid,

0 commit comments

Comments
 (0)