Flajt / decentproof-app

Proof that your audio/video/image files taken with this app haven't been tampered with
https://www.decentproof.com
GNU General Public License v3.0
2 stars 0 forks source link

Make scw_secret_manager mockable #92

Closed Flajt closed 7 months ago

Flajt commented 7 months ago

Is your feature request related to a problem? Please describe. Currently tests running on dev that use scw_secret_manager, will delete all secrets after they are done.

Describe the solution you'd like To combat this I would like to make the service mockable by adding an interface, this way all services can depend on the interface, and I can create a mock implementation of the service, which doesn't use the secret manager in tests.

Describe alternatives you've considered Either replacing deleted entries or not running tests, both is not great.

Additional context This might also fix the issue with local development in the future.