r-lib / keyring

:closed_lock_with_key: Access the system credential store from R
https://keyring.r-lib.org/
Other
196 stars 28 forks source link

test: replace mockery with testthat mocking #149

Closed maelle closed 7 months ago

maelle commented 7 months ago

I'm suggesting this because I'd like to write an update to my post from 2019, where the real example was this keyring test. :innocent: https://blog.r-hub.io/2019/10/29/mocking/#general-mocking

gaborcsardi commented 7 months ago

Thanks! The thing is, I like mockery and the way it works, especially for packages that may be called during a test run. I think switching to testthat is probably fine, but it is just simpler to avoid thinking about this. And possibly keep thinking about it in the future.

maelle commented 7 months ago

Thanks for your response! For info, the new post draft is at https://github.com/r-hub/blog/pull/171