-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move fixtures to dedicated module
- Loading branch information
Showing
3 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import asyncio | ||
from pathlib import Path | ||
|
||
from pyfixtures import fixture | ||
|
||
|
||
@fixture | ||
async def bowtie_path(work_path: Path) -> Path: | ||
"""The path to the generated Bowtie2 index files.""" | ||
path = work_path / "bowtie" | ||
await asyncio.to_thread(path.mkdir) | ||
|
||
return path / "reference" | ||
|
||
|
||
@fixture | ||
async def export_json_path(work_path: Path) -> Path: | ||
"""The path to the generated JSON index export file.""" | ||
return work_path / "reference.json.gz" | ||
|
||
|
||
@fixture | ||
async def fasta_path(work_path: Path) -> Path: | ||
"""The path to the generated index file.""" | ||
return work_path / "reference.fa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters