def test_sanitize_channel(): test_url = 'https://conda.anaconda.org/t/ms-534991f2-4123-473a-b512-42025291b927/somechannel' assert build.sanitize_channel( test_url) == 'https://conda.anaconda.org/somechannel' test_url_auth = 'https://*****:*****@conda.anaconda.org/somechannel' assert build.sanitize_channel( test_url_auth) == 'https://conda.anaconda.org/somechannel'
def test_sanitize_channel(): test_url = 'https://conda.anaconda.org/t/ms-534991f2-4123-473a-b512-42025291b927/somechannel' assert build.sanitize_channel(test_url) == 'https://conda.anaconda.org/t/<TOKEN>/somechannel'