Skip to content

Commit

Permalink
use scanpy backup_url functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
mumichae committed Jan 13, 2025
1 parent 5104c7b commit 3a64fbb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,10 @@ def adata_clustered(adata_neighbors):

@pytest.fixture()
def adata_from_url(request):
from io import BytesIO

import requests

dataset_name = request.param
url = DATASETS[dataset_name]

response = requests.get(url)
response.raise_for_status()

adata = sc.read_h5ad(BytesIO(response.content))
adata = sc.read(f"{dataset_name}.h5ad", backup_url=url)
assert adata is not None
adata.uns["dataset_name"] = dataset_name

Expand Down

0 comments on commit 3a64fbb

Please sign in to comment.