mscarey / AuthoritySpoke

Reading legal authority for the last time
https://authorityspoke.readthedocs.io
Other
33 stars 2 forks source link

refactor test models for fewer API calls #78

Open mscarey opened 4 years ago

mscarey commented 4 years ago

It would be good if each API call was represented by just one cassette. Or at least just one in an actual test and one in conftest.

mscarey commented 4 years ago

I created the JSONRepository class to store mock API calls locally, and then I moved it entirely out of AuthoritySpoke, into Legislice. But I should still be able to eliminate cassettes by accessing a JSONRepository instead.