Ejemplo n.º 1
0
def test_strip_protocol(dvc):
    assert (AzureFileSystem._strip_protocol(f"azure://{container_name}") ==
            f"azure://{container_name}")
Ejemplo n.º 2
0
def test_strip_protocol_env_var(monkeypatch, dvc):
    monkeypatch.setenv("AZURE_STORAGE_CONTAINER_NAME", container_name)
    monkeypatch.setenv("AZURE_STORAGE_CONNECTION_STRING", connection_string)

    assert (AzureFileSystem._strip_protocol("azure://") ==
            f"azure://{container_name}")