Skip to content

Commit

Permalink
Lint and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Nov 15, 2024
1 parent a447223 commit 010bf74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
CREATE_TABLE_DATA_FILTER,
DELETE_TABLE_DATA_FILTER,
LIST_TABLE_DATA_FILTERS,
MANAGE_DATASETS
MANAGE_DATASETS,
)
from dataall.base.db import exceptions
from dataall.modules.s3_datasets.aws.lf_data_filter_client import LakeFormationDataFilterClient
Expand Down
3 changes: 1 addition & 2 deletions tests/test_tenant_unauthorized.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
'Mutation.createWorksheet',
'Mutation.updateWorksheet',
'Mutation.deleteWorksheet',
'Query.runAthenaSqlQuery'
'Query.runAthenaSqlQuery',
]

ALL_RESOLVERS = {
Expand All @@ -157,7 +157,6 @@ def test_unauthorized_tenant_permissions(
db, userNoTenantPermissions.username, [groupNoTenantPermissions.groupUri], userNoTenantPermissions
)
with mocker.patch('dataall.base.context._request_storage', mock_local):
print(inspect.signature(field_resolver).parameters.keys())
iargs = {arg: MagicMock() for arg in inspect.signature(field_resolver).parameters.keys()}
assert_that(field_resolver).raises(TenantUnauthorized).when_called_with(**iargs).contains(
'UnauthorizedOperation'
Expand Down

0 comments on commit 010bf74

Please sign in to comment.