#NEWLINE# def test_config_envvar( monkeypatch ) : #NEWLINE# #INDENT# 'Get access token from MAPBOX_ACCESS_TOKEN.' #NEWLINE# monkeypatch . setenv ( 'MAPBOX_ACCESS_TOKEN' , 'pk.test_config_envvar_2' ) #NEWLINE# runner = CliRunner ( ) #NEWLINE# result = runner . invoke ( main_group , [ 'config' ] , catch_exceptions = False ) #NEWLINE# assert ( 'Config file' not in result . output ) #NEWLINE# assert ( 'access-token = pk.test_config_envvar_2' in result . output ) #NEWLINE# assert ( 'MAPBOX_ACCESS_TOKEN = pk.test_config_envvar_2' in result . output ) #NEWLINE# monkeypatch . undo ( )