I'm developing a package that builds on the keyring package. I'm trying to write my unit tests with testthat. I plan to write automated tests for everything non-interactive in my code, and for good measure right out manual tests for everything else.
There's just one problem: Literally everything I've written requires the user to create at least one keyring. But there is no parameterised keyring:: keyring_create() to allow me to automate the creation of a keyring sans interactivity.
I mean I suppose I could test my error messages no matter what.
But is there a way to create a dummy keyring (specifying a master password) in test environments (Windows, Linux, and Mac, all without user interaction) in order to test the rest of my code?