peopledoc/vault-cli

All tests should run independently of all env vars and conf files.

ewjoachim opened this issue · 2 comments

For the conf file, honestly, I have no idea how we should be doing that.

For the env vars, a auto-use session-wide fixture removing all env vars that start with VAULT-CLI should do the trick.

Implementing just the env var part. If someone has an idea regarding fs, given that pyfakefs doesn't allow to easily make a session scoped fixture, and doing a function-scoped one would horribly slow down the tests...