def test_set_with_non_str_types_on_first_level():
    """Non-str key types on first level."""
    settings = Dynaconf(merge_enabled=True)
    settings.set(1, {"b": {1: "foo"}})
    settings.set("a", {"1": {1: "foo"}})
    assert settings[1]["b"][1] == "foo"
    assert settings[1].b[1] == "foo"
    assert settings.get(1).b[1] == "foo"
    assert settings["a"]["1"][1] == "foo"
Non-str key types on first level.
tests/test_base.py