def test_include_via_python_module_name(tmpdir):
    """Check if an include can be a Python module name"""
    settings_file = tmpdir.join("settings.toml")
    settings_file.write(
        """
       [default]
       default_var = 'default'
    """
    )

    dummy_folder = tmpdir.mkdir("dummy")
    dummy_folder.join("dummy_module.py").write('FOO = "164110"')
    dummy_folder.join("__init__.py").write('print("initing dummy...")')

    settings = LazySettings(
        environments=True,
        SETTINGS_FILE_FOR_DYNACONF=str(settings_file),
        INCLUDES_FOR_DYNACONF=["dummy.dummy_module"],
    )

    assert settings.DEFAULT_VAR == "default"
    assert settings.FOO == "164110"
Check if an include can be a Python module name
tests/test_nested_loading.py