Skip to content

Commit

Permalink
Using example test data for test_learn_loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewoldag committed Sep 26, 2024
1 parent fe23cf9 commit 79276fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
def test_data_path():
return Path(__file__).parent.parent / "data" / "tests"

@pytest.fixture
def test_des_data_path():
return Path(__file__).parent.parent / "data" / "tests" / "DES_data"


@pytest.fixture(scope="session")
def base_temp(tmp_path_factory):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_learn_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
from resspect import fit_snpcc
from resspect.learn_loop import learn_loop

def test_can_run_learn_loop(test_data_path):
def test_can_run_learn_loop(test_des_data_path):
"""Test that learn_loop can load data and run."""
with tempfile.TemporaryDirectory() as dir_name:
# Create the feature files to use for the learning loop.
output_file = os.path.join(dir_name, "output_file.dat")
fit_snpcc(
path_to_data_dir=test_data_path,
path_to_data_dir=test_des_data_path,
features_file=output_file,
)

Expand Down

0 comments on commit 79276fb

Please sign in to comment.