Skip to content

Commit

Permalink
feat: update HGNC license
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Sep 27, 2023
1 parent b1b1aeb commit 9651115
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions gene/etl/hgnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ def perform_etl(self) -> List[str]:
def _add_meta(self) -> None:
"""Add HGNC metadata."""
metadata = SourceMeta(
data_license="custom",
data_license_url="https://www.genenames.org/about/",
data_license="CC0",
data_license_url="https://www.genenames.org/about/license/",
version=self._version,
data_url=self._data_url,
rdp_url=None,
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/test_hgnc_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,10 @@ def test_no_match(hgnc):
def test_meta_info(hgnc):
"""Test that the meta field is correct."""
resp = hgnc.search("HGNC:37133")
assert resp.source_meta_.data_license == "custom"
assert resp.source_meta_.data_license_url == "https://www.genenames.org/about/"
assert resp.source_meta_.data_license == "CC0"
assert (
resp.source_meta_.data_license_url == "https://www.genenames.org/about/license/"
)
assert datetime.strptime(resp.source_meta_.version, "%Y%m%d")
assert (
resp.source_meta_.data_url
Expand Down

0 comments on commit 9651115

Please sign in to comment.