We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 483f0d1 commit b3075a7Copy full SHA for b3075a7
tests/conftest.py
@@ -30,9 +30,14 @@ def fx_alignments_fasta(fx_data_cache):
30
31
32
@pytest.fixture
33
-def fx_alignments_mafft_fasta():
+def fx_alignments_mafft_fasta(fx_data_cache):
34
# This is bgzipped so we can access directly
35
- return pathlib.Path("tests/data/alignments-mafft.fasta.gz")
+ cache_path = fx_data_cache / "alignments-mafft.fasta"
36
+ if not cache_path.exists():
37
+ with gzip.open("tests/data/alignments-mafft.fasta.gz") as src:
38
+ with open(cache_path, "wb") as dest:
39
+ shutil.copyfileobj(src, dest)
40
+ return cache_path
41
42
43
def encoded_alignments(path):
0 commit comments