We have a Flask app that is utilizing variables from Application Settings in Azure via python-dotenv's load_dotenv() method and os.environ in the code. I have tests in pytest that are referencing these same environment variables. I am able to add the variables to the pipeline, but it feels inefficient to have to copy over environment variables that I've already created elsewhere. Is there any way to reference these in the pytest tests?
Asked
Active
Viewed 109 times