Skip to content

Commit

Permalink
SciDataLib-79 Code does not recognize ontological value
Browse files Browse the repository at this point in the history
added test for the __chkont function
  • Loading branch information
stuchalk committed Dec 18, 2023
1 parent 0453d7b commit 7fd8448
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_scidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,3 +699,14 @@ def test_rights_replace(sd):
inn = {'holder': holder, 'license': lic}
sd.rights([inn, inn])
assert sd.rights([inn], True) == out


def test_ont_field_name_update(sd):
dis = 'Chemistry'
sub = 'mod:MultiverseChemistry'
sd.namespaces({'mod': 'https://w3id.org/skgo/modsci#'})
sd.discipline(dis)
sd.subdiscipline(sub)
out = sd.output
assert out['@graph']['scidata']['discipline'] == dis
assert out['@graph']['scidata']['subdiscipline#'] == sub

0 comments on commit 7fd8448

Please sign in to comment.