Sindri-Labs / sindri-python

Contains SDK code for Sindri APIs
MIT License
4 stars 0 forks source link

Use recorded API responses for unit tests #23

Open KPreisner opened 4 months ago

KPreisner commented 4 months ago

Use recorded API responses for unit tests

With API tests, I think you'd typically use something like vcrpy to record responses, then have separate test commands for recording vs playing back. I'll buy it being out of scope for this PR, but doing something like that and running tests on CI is probably the direction we want to head with this.

_Originally posted by @sangaline in https://github.com/Sindri-Labs/sindri-python/pull/21#discussion_r1517957868_