Skip to content
#

environment-configuration

Here are 56 public repositories matching this topic...

dynaconf
dyens
dyens commented Aug 8, 2019

For testing in my project i want to add in my conftest.py something like that:

import pytest
import os

@pytest.fixture(scope='session', autouse=True)
def settings():
    os.environ['ENV_FOR_DYNACONF'] = 'testing'

But this is not work ;-(. What can you advise me ?
I dont want start my test like that : ENV_FOR_DYNACONF=testing pytest because somebody can miss that command pr

Improve this page

Add a description, image, and links to the environment-configuration topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the environment-configuration topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.