Skip to content

Commit

Permalink
use remote path in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Koncopd committed Jul 15, 2024
1 parent 8d012ab commit f9749b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ def test_backed_tiledbsoma(storage):
artifact_soma = ln.Artifact("test.tiledbsoma", description="test tiledbsoma")
artifact_soma.save()

# otherwise backed will use the cached object for connection
if storage is not None:
cache_path = artifact_soma.cache()
shutil.rmtree(cache_path)
assert not cache_path.exists()

experiment = artifact_soma.backed()
assert isinstance(experiment, tiledbsoma.Experiment)
experiment.close()
Expand Down

0 comments on commit f9749b1

Please sign in to comment.