Skip to content

Commit 9354e52

Browse files
committed
Fix type
1 parent b9bbca0 commit 9354e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/labelbox/tests/integration/test_api_keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ def test_create_api_key_invalid_time_unit(client):
231231

232232
@pytest.mark.skipif(
233233
condition=os.environ["LABELBOX_TEST_ENVIRON"] == "prod",
234-
reason="Accounts with sdmin permission can create API keys",
234+
reason="Accounts with admin permission can create API keys",
235235
)
236236
def test_create_api_key_insufficient_permissions(client):
237237
"""Test that creating an API key fails when the user has insufficient permissions."""
238238
user_email = client.get_user().email
239239

240-
if client.get_user().org_role().name == "Admin":
240+
if client.get_user().org_role().name != "Admin":
241241
# Attempt to create another API key using the limited permissions client
242242
# This should fail due to insufficient permissions
243243
with pytest.raises(LabelboxError) as excinfo:

0 commit comments

Comments
 (0)