Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Nov 11, 2024
1 parent c861b41 commit 4bbccef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dsp_permissions_scripts/doap/doap_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def create_new_doap_on_server(
"forProject": proj_iri,
"forProperty": forProperty,
"forResourceClass": forResourceClass,
"hasPermissions": create_admin_route_object_from_scope(scope),
"hasPermissions": create_admin_route_object_from_scope(scope, dsp_client),
}
try:
response = dsp_client.post("/admin/permissions/doap", data=payload)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_doap_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ def test_create_doap_for_resclass(
)
dsp_client.post.assert_called_once_with("/admin/permissions/doap", data=request_for_resclass)
create_doap_from_admin_route_response.assert_called_once_with(
response_for_resclass["default_object_access_permission"]
response_for_resclass["default_object_access_permission"], dsp_client
)

0 comments on commit 4bbccef

Please sign in to comment.