broadinstitute / genetic-prevalence-estimator

https://genie.broadinstitute.org/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Add tests for worker #94

Open nawatts opened 2 years ago

nawatts commented 2 years ago

Currently, worker tests only cover parsing the incoming request.

There should be tests for the logic for selecting variants for recommended variant lists, the variant format, etc.

nawatts commented 2 years ago

Could possibly use some kind of snapshot testing for this.

https://pypi.org/project/pytest-snapshot/ https://docs.pytest.org/en/latest/example/simple.html