Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
hy395 committed Nov 5, 2024
1 parent 527ba32 commit 44cf223
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
import pytest
from pathlib import Path

def pytest_collection_modifyitems(config, items):

def pytest_collection_modifyitems(config, items):
if not config.getoption("--integration"):
skip_integration = pytest.mark.skip(reason="Integration test - use --integration to run")
skip_integration = pytest.mark.skip(
reason="Integration test - use --integration to run"
)
for item in items:
test_path = Path(item.fspath)
if "integration" in test_path.parts:
item.add_marker(skip_integration)


def pytest_addoption(parser):
print("Adding custom option") # Debug print
parser.addoption(
"--integration",
action="store_true",
default=False,
help="run integration tests"
)
help="run integration tests",
)
1 change: 1 addition & 0 deletions tests/integration/test_transfer_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pandas as pd
from baskerville import seqnn


def test_housby():
model_file = "/home/yuanh/analysis/Borzoi_transfer/exp_10_10_23/hayflick/houlsby/latent_8/train/f0c0/train/model_best.h5"
targets_file = "tests/data/transfer/targets.txt"
Expand Down

0 comments on commit 44cf223

Please sign in to comment.