Skip to content

Commit 8513dfe

Browse files
Get ready for test-data merge but keep hardcoded path for local testing
1 parent c024112 commit 8513dfe

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

multiqc/modules/proteinfold/tests/test_proteinfold.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
import pytest
2+
23
from pathlib import Path
4+
35
from multiqc import report
46
from multiqc.modules.proteinfold import MultiqcModule
7+
from multiqc.utils import testing
8+
59

610
# Will fix when I do a PR against the MultiQC test data repo
7-
# TEST_DATA_DIR = Path(__file__).parent / "test-data"
8-
TEST_DATA_DIR = Path("/srv/scratch/z3374843/test-data/data/modules/proteinfold")
11+
test_data_proteinfold = Path("/srv/scratch/z3374843/test-data/data/modules/proteinfold")
12+
13+
14+
# @pytest.fixture
15+
# def data_dir():
16+
# return testing.data_dir()
917

1018

1119
@pytest.fixture
@@ -15,8 +23,10 @@ def mod():
1523
report.analysis_files = []
1624
report.files = {}
1725

26+
# test_data_proteinfold = data_dir / "modules" / "proteinfold"
27+
1828
# Set up analysis files from local test data
19-
report.analysis_files = list(TEST_DATA_DIR.glob("*"))
29+
report.analysis_files = list(test_data_proteinfold.glob("*"))
2030
report.search_files(["proteinfold"])
2131

2232
return MultiqcModule()

0 commit comments

Comments
 (0)