Skip to content

Commit b3075a7

Browse files
Switch to decompressed FASTA for simplicity
1 parent 483f0d1 commit b3075a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ def fx_alignments_fasta(fx_data_cache):
3030

3131

3232
@pytest.fixture
33-
def fx_alignments_mafft_fasta():
33+
def fx_alignments_mafft_fasta(fx_data_cache):
3434
# This is bgzipped so we can access directly
35-
return pathlib.Path("tests/data/alignments-mafft.fasta.gz")
35+
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
3641

3742

3843
def encoded_alignments(path):

0 commit comments

Comments
 (0)