InstaNovo / tests /conftest.py
BioGeek's picture
Update InstaNovo to v1.2.2 with reproducibility fixes
2c21889
Raw
History Blame Contribute Delete
417 Bytes
"""Pytest configuration for InstaNovo Gradio tests."""
import pytest
def pytest_configure(config):
"""Configure pytest markers."""
config.addinivalue_line(
"markers", "slow: marks tests as slow (deselect with '-m \"not slow\"')"
)
@pytest.fixture(scope="session")
def device():
"""Get the device for testing."""
import torch
return "cuda" if torch.cuda.is_available() else "cpu"