def test_maybe_add_simple_index_upload(): dist = Distribution() cmd = upload(dist) assert cmd.maybe_add_simple_index('http://foo') == 'http://foo'
def test_maybe_add_simple_index_upload(): with patch.object(base, 'CONFIG', TEST_CONFIG): dist = Distribution() cmd = upload.upload(dist) assert cmd.maybe_add_simple_index('http://foo') == 'http://foo'