Skip to content

Commit

Permalink
fix ruff violations
Browse files Browse the repository at this point in the history
  • Loading branch information
jnussbaum committed Oct 11, 2024
1 parent b16c571 commit 7ec83f4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions tests/test_ap_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from dsp_permissions_scripts.models import group


@pytest.fixture()
@pytest.fixture
def create_new_ap_request() -> dict[str, Any]:
return {
"forGroup": "http://www.knora.org/ontology/knora-admin#Creator",
Expand All @@ -21,7 +21,7 @@ def create_new_ap_request() -> dict[str, Any]:
}


@pytest.fixture()
@pytest.fixture
def create_new_ap_response() -> dict[str, Any]:
return {
"administrative_permission": {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_doap_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from dsp_permissions_scripts.models.scope import PermissionScope


@pytest.fixture()
@pytest.fixture
def create_new_doap_request() -> dict[str, Any]:
return {
"forGroup": "http://www.knora.org/ontology/knora-admin#KnownUser",
Expand All @@ -27,7 +27,7 @@ def create_new_doap_request() -> dict[str, Any]:
}


@pytest.fixture()
@pytest.fixture
def create_new_doap_response() -> dict[str, Any]:
return {
"default_object_access_permission": {
Expand Down
10 changes: 5 additions & 5 deletions tests/test_oap_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from dsp_permissions_scripts.utils.dsp_client import DspClient


@pytest.fixture()
@pytest.fixture
def resource() -> dict[str, Any]:
return {
"@id": "http://rdfh.ch/0838/dBu563hjSN6RmJZp6NU3_Q",
Expand All @@ -39,7 +39,7 @@ def resource() -> dict[str, Any]:
}


@pytest.fixture()
@pytest.fixture
def gravsearch_1_link_obj() -> dict[str, Any]:
return {
"knora-api:hasPermissions": "CR knora-admin:ProjectAdmin|D knora-admin:ProjectMember",
Expand All @@ -48,7 +48,7 @@ def gravsearch_1_link_obj() -> dict[str, Any]:
}


@pytest.fixture()
@pytest.fixture
def gravsearch_4_link_objs_on_2_pages() -> list[dict[str, Any]]:
page_1 = {
"@graph": [
Expand Down Expand Up @@ -82,7 +82,7 @@ def gravsearch_4_link_objs_on_2_pages() -> list[dict[str, Any]]:
return [page_1, page_2]


@pytest.fixture()
@pytest.fixture
def video_segment() -> dict[str, Any]: # https://ark.stage.dasch.swiss/ark:/72163/1/0812/l32ehsHuTfaQAKVTRiuBRAR
return {
"knora-api:hasSegmentBounds": {
Expand Down Expand Up @@ -126,7 +126,7 @@ def video_segment() -> dict[str, Any]: # https://ark.stage.dasch.swiss/ark:/721
}


@pytest.fixture()
@pytest.fixture
def linkobj() -> dict[str, Any]: # https://app.test.dasch.swiss/resource/F18E/Os_5VvgkSC2saUlSUdcLhA
return {
"knora-api:hasPermissions": "CR knora-admin:ProjectAdmin|V knora-admin:KnownUser",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_oap_update_iris.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from dsp_permissions_scripts.utils.dsp_client import DspClient


@pytest.fixture()
@pytest.fixture
def res_dict_2_props() -> dict[str, Any]:
return {
"knora-api:lastModificationDate": {"@value": "2024-09-10T18:07:10.753289758Z", "@type": "xsd:dateTimeStamp"},
Expand All @@ -40,7 +40,7 @@ def res_dict_2_props() -> dict[str, Any]:
}


@pytest.fixture()
@pytest.fixture
def res_dict_2_vals() -> dict[str, Any]:
return {
"knora-api:lastModificationDate": {"@value": "2024-09-10T18:07:10.753289758Z", "@type": "xsd:dateTimeStamp"},
Expand Down

0 comments on commit 7ec83f4

Please sign in to comment.