Exemple #1
0
def test_maybe_add_simple_index_upload():
    dist = Distribution()
    cmd = upload(dist)
    assert cmd.maybe_add_simple_index('http://foo') == 'http://foo'
Exemple #2
0
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'