GenomicMedLab / dgipy

Python client for fast access to the Drug-Gene Interaction Database (DGIDb)
MIT License
0 stars 0 forks source link

test: mock request calls for core client tests #32

Closed jsstevenson closed 7 months ago

jsstevenson commented 7 months ago

The tests themselves aren't too picky about what's coming out in the response. I assume that if we're getting data, it should be more or less correct -- I'm more concerned with making sure that we handle its structures correctly.

You can skip the dozen JSON files -- the important stuff is in conftest.py and test_dgidb.py.

jsstevenson commented 7 months ago

Tests pass locally on 3.12, but they're failing here because of issues fixed in #32 . Feel free to give a review now but we shouldn't merge until tests are passing in CI.