Skip to content

Commit

Permalink
Update value casing for consistency per UXWS & EngX request
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanson8 committed Mar 27, 2024
1 parent e7455fb commit b5b47c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/sources/json/test_aardvark.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def test_aardvark_get_rights_mit_public_success(aardvark_record_all_fields):
aardvark_record["dct_accessRights_s"] = "Public"
assert MITAardvark.get_rights("gismit", aardvark_record) == [
timdex.Rights(description="Public", kind="Access rights"),
timdex.Rights(description="No authentication required", kind="Access to files"),
timdex.Rights(description="no authentication required", kind="Access to files"),
timdex.Rights(uri="http://license.license"),
timdex.Rights(uri="http://another_license.another_license"),
timdex.Rights(description="Some person has the rights"),
Expand All @@ -345,7 +345,7 @@ def test_aardvark_get_rights_external_restricted_success(aardvark_record_all_fie
assert MITAardvark.get_rights("gisogm", aardvark_record) == [
timdex.Rights(description="Restricted", kind="Access rights"),
timdex.Rights(
description="Unknown: check with owning institution", kind="Access to files"
description="unknown: check with owning institution", kind="Access to files"
),
timdex.Rights(uri="http://license.license"),
timdex.Rights(uri="http://another_license.another_license"),
Expand All @@ -362,7 +362,7 @@ def test_aardvark_get_rights_external_public_success(aardvark_record_all_fields)
assert MITAardvark.get_rights("gisogm", aardvark_record) == [
timdex.Rights(description="Public", kind="Access rights"),
timdex.Rights(
description="Unknown: check with owning institution", kind="Access to files"
description="unknown: check with owning institution", kind="Access to files"
),
timdex.Rights(uri="http://license.license"),
timdex.Rights(uri="http://another_license.another_license"),
Expand Down
4 changes: 2 additions & 2 deletions transmogrifier/sources/json/aardvark.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def get_rights(source: str, source_record: dict) -> list[timdex.Rights]:
if source == "gisogm":
rights.append(
timdex.Rights(
description="Unknown: check with owning institution",
description="unknown: check with owning institution",
kind=kind_access_to_files,
)
)
Expand All @@ -419,7 +419,7 @@ def get_rights(source: str, source_record: dict) -> list[timdex.Rights]:
else:
rights.append(
timdex.Rights(
description="No authentication required",
description="no authentication required",
kind=kind_access_to_files,
)
)
Expand Down

0 comments on commit b5b47c6

Please sign in to comment.