Skip to content
#

configuration

Here are 4,891 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
groundnuty
groundnuty commented Aug 27, 2021

What steps did you take:

Input:

#@ def group_alpha():
name: alpha
#@ end
groups: &all_groups
  - #@ group_alpha()
foo:
  groups: *all_groups

Result:

groups:
- null
foo:
  groups:
  - name: alpha

Expected:

groups:
- alpha
foo:
  groups:
  - name: alpha

Expected according to [limitations](https://carvel.dev/ytt/docs/latest/known-limitat

good first issue documentation priority/unprioritized-backlog

Improve this page

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

Learn more