def test_config_envvar(monkeypatch):
    monkeypatch.setenv('MAPBOX_ACCESS_TOKEN', 'pk.test_config_envvar_2')
    runner = CliRunner()
    result = runner.invoke(main_group, ['config'], catch_exceptions=False)
    assert "Config file" not in result.output
    assert "access-token = pk.test_config_envvar_2" in result.output
    assert "MAPBOX_ACCESS_TOKEN = pk.test_config_envvar_2" in result.output
    monkeypatch.undo()
DVR module resource headers
dataset/ETHPy150Open mapbox/mapbox-cli-py/tests/test_config.py/test_config_envvar--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/dvr.py/dvr_rheader