From b00396dc0f9f21af4e8936395a5b4fc85be4dcb8 Mon Sep 17 00:00:00 2001 From: Matthew Iannucci Date: Thu, 1 Aug 2024 14:05:03 -0400 Subject: [PATCH] Fix tests --- docs/examples/subset_file.py | 2 +- tests/test_grids/test_ugrid.py | 2 +- tests/test_visualization/test_mpl_plotting.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/examples/subset_file.py b/docs/examples/subset_file.py index 2a8115d..bb16d1a 100644 --- a/docs/examples/subset_file.py +++ b/docs/examples/subset_file.py @@ -8,7 +8,7 @@ import matplotlib.pyplot as plt -FILENAME = "example_data/SFBOFS_subset1.nc" +FILENAME = "docs/examples/example_data/SFBOFS_subset1.nc" # polygon to subset to diff --git a/tests/test_grids/test_ugrid.py b/tests/test_grids/test_ugrid.py index 614f433..c12fa72 100644 --- a/tests/test_grids/test_ugrid.py +++ b/tests/test_grids/test_ugrid.py @@ -10,7 +10,7 @@ from xarray_subset_grid.grids import ugrid -EXAMPLE_DATA = Path(__file__).parent.parent.parent / "examples" / "example_data" +EXAMPLE_DATA = Path(__file__).parent.parent.parent / "docs" / "examples" / "example_data" TEST_FILE1 = EXAMPLE_DATA / "SFBOFS_subset1.nc" diff --git a/tests/test_visualization/test_mpl_plotting.py b/tests/test_visualization/test_mpl_plotting.py index 99e3936..8aca928 100644 --- a/tests/test_visualization/test_mpl_plotting.py +++ b/tests/test_visualization/test_mpl_plotting.py @@ -19,7 +19,7 @@ pytestmark = pytest.mark.skip(reason="matplotlib is not installed") -EXAMPLE_DATA = Path(__file__).parent.parent.parent / "examples" / "example_data" +EXAMPLE_DATA = Path(__file__).parent.parent.parent / "docs" / "examples" / "example_data" OUTPUT_DIR = Path(__file__).parent / "output"