monarch-initiative / oncoexporter

Cancer data to GA4GH phenopacket
https://monarch-initiative.github.io/oncoexporter
MIT License
6 stars 1 forks source link

test_iso_age - fix calculate of ISO age #49

Closed pnrobinson closed 6 months ago

pnrobinson commented 8 months ago

The following test fails because the code returns 23 months

FAILED tests/test_op_individual.py::OpIndividualTestCase::test_iso_age - AssertionError: 'P43Y9M' != 'P43Y23M6D'

Fix this and add more unit tests. Can we add parameterized tests? Note that it is hard to figure out the gold standard if we start with days.

pnrobinson commented 6 months ago

fixed with #67