Skip to content
#

environment-variables

Here are 1,166 public repositories matching this topic...

dynaconf
rochacbruno
rochacbruno commented Mar 31, 2022

On lines
https://github.com/rochacbruno/dynaconf/blob/master/dynaconf/validator.py#L202-L205

validators.validate is calling from_env and it makes the variables to be reloaded from source files.

This is not good for testing.

Solution:

  1. Check if validation is happening on the same current env, then don't reload
  2. accept argument reload=False that will cause those lines to pass
Not a Bug RFC good first issue
cleanenv
amir-blox
amir-blox commented May 23, 2021

I've noticed that when reading a config file with a field that is not available in env, its custom function won't run.

The reason seems to be that for these kind of fields, parseValue won't be called and therefore the corresponding custom function.

Custom functions runs only if the field was provided as an env argument or with

bug help wanted good first issue

Improve this page

Add a description, image, and links to the environment-variables 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-variables topic, visit your repo's landing page and select "manage topics."

Learn more