[Python] Best way to use python-dotenv with pytest, or best way to have a pytest...

Discussão em 'Python' iniciado por Stack, Agosto 28, 2025.

  1. Stack

    Stack Membro Participativo

    I want to use the python dotenv-lib at my python project. My dev-environment should use .env-file and the test-suite (pytest) should use .env.test automatically.

    Until now I didn't find a satisfying solution.

    I'm not very familiar with python. Maybe somebody can point me in the right direction.

    Should I load the .env.test file in a pytest hook?

    Continue reading...

Compartilhe esta Página