Skip to content

Commit 69069c9

Browse files
committed
Fix lint
1 parent c2e2b6e commit 69069c9

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

libs/labelbox/tests/unit/schema/test_user_group.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ class TestUserGroup:
102102
def setup_method(self):
103103
# Reset the global roles cache before each test
104104
import labelbox.schema.role as role_module
105+
105106
role_module._ROLES = None
106-
107+
107108
self.client = MagicMock(Client)
108109
self.client.get_roles.return_value = {
109110
"LABELER": Role(self.client, {"id": "role_id", "name": "LABELER"}),
@@ -199,7 +200,7 @@ def test_get(self):
199200
],
200201
},
201202
}
202-
}
203+
},
203204
]
204205
group = UserGroup(self.client)
205206
assert group.id == ""
@@ -318,9 +319,7 @@ def test_update_without_members_should_work(self, group_project):
318319
}
319320
},
320321
# Mock get_roles query response (even though no members, _get_members_set is still called)
321-
{
322-
"roles": []
323-
},
322+
{"roles": []},
324323
# Mock get query response
325324
{
326325
"userGroupV2": {
@@ -423,7 +422,7 @@ def test_user_groups(self):
423422
},
424423
],
425424
}
426-
}
425+
},
427426
]
428427
user_groups = list(UserGroup.get_user_groups(self.client))
429428
assert len(user_groups) == 2
@@ -541,9 +540,7 @@ def test_create_without_members_should_work(self, group_project):
541540
}
542541
},
543542
# Mock get_roles query response (even though no members, _get_members_set is still called)
544-
{
545-
"roles": []
546-
},
543+
{"roles": []},
547544
# Mock get query response
548545
{
549546
"userGroupV2": {
@@ -632,9 +629,7 @@ def test_create_mutation():
632629
}
633630
},
634631
# Second call: get_roles query
635-
{
636-
"roles": []
637-
},
632+
{"roles": []},
638633
# Third call: get query
639634
{
640635
"userGroupV2": {
@@ -694,9 +689,7 @@ def test_update_mutation():
694689
}
695690
},
696691
# Second call: get_roles query
697-
{
698-
"roles": []
699-
},
692+
{"roles": []},
700693
# Third call: get query
701694
{
702695
"userGroupV2": {

0 commit comments

Comments
 (0)