tr11 / python-configuration

A Python library to load configuration parameters

Home Page:https://tr11.github.io/python-configuration/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tuple is returned as list when interpolating

chinghwayu opened this issue · comments

from config import config

def test_tuple_interpolate():
    DICT = {"a1": (1, 2)}
    cfg = config(DICT, interpolate=True)
    assert cfg["a1"] == (1, 2)

Results in:

>       assert cfg["a1"] == (1, 2)
E       assert [1, 2] == (1, 2)
E         Full diff:
E         - (1, 2)
E         + [1, 2]

I've narrowed down the location of the bug and will submit a PR soon.