Skip to content

Commit

Permalink
protect test_dataset_factory.py against missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles committed Jan 16, 2025
1 parent bf40fda commit 36a5c34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/plotting/test_dataset_factory.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import os
import pytest

from rail.plotting.dataset_factory import RailDatasetFactory
from rail.plotting.data_extraction import RailProjectDataExtractor
from rail.projects import RailProject

missing_ci_data = not os.path.exists(os.path.expandvars(("$HOME/xfer/ci_test.tgz")))

def test_load_yaml() -> None:

@pytest.mark.skipif(missing_ci_data, reason="no ci data")
def test_load_yaml(setup_project_area) -> None:

# Load the testing yaml file
RailDatasetFactory.clear()
Expand Down

0 comments on commit 36a5c34

Please sign in to comment.