Skip to content

Commit

Permalink
Disable tests that have been failing since May 2022. These will be fi…
Browse files Browse the repository at this point in the history
…xed in a follow-up PR.
  • Loading branch information
enlivn committed Oct 27, 2023
1 parent d58172d commit 875a7af
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_earthranger_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def test_get_subjectgroup_observations(er_io):
assert "groupby_col" in relocations


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_get_events(er_events_io):
events = er_events_io.get_events()
assert not events.empty
Expand Down
1 change: 1 addition & 0 deletions tests/test_ecograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
)


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_ecograph(movbank_relocations):
# apply relocation coordinate filter to movbank data
pnts_filter = ecoscope.base.RelocsCoordinateFilter(
Expand Down
2 changes: 2 additions & 0 deletions tests/test_eetools.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def test_albedo_anomaly(aoi_gdf):
assert result["Albedo_BSA_vis"].mean() > 0


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_label_gdf_with_temporal_image_collection_by_features_aois(aoi_gdf):
aoi_gdf = aoi_gdf.to_crs(4326)

Expand Down Expand Up @@ -59,6 +60,7 @@ def test_label_gdf_with_temporal_image_collection_by_features_aois(aoi_gdf):
assert results["NDVI"].explode().mean() > 0


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_label_gdf_with_temporal_image_collection_by_features_relocations(movbank_relocations):
tmp_gdf = movbank_relocations[["fixtime", "geometry"]].iloc[0:1000]

Expand Down
1 change: 1 addition & 0 deletions tests/test_seasons.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
)


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_seasons():
gdf = gpd.read_file("tests/sample_data/vector/AOI_sites.gpkg").to_crs(4326)

Expand Down
3 changes: 3 additions & 0 deletions tests/test_ud.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
import geopandas as gpd
import geopandas.testing
import numpy as np
import pytest

import ecoscope


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_etd_range(movbank_relocations):
# apply relocation coordinate filter to movbank data
pnts_filter = ecoscope.base.RelocsCoordinateFilter(
Expand Down Expand Up @@ -51,6 +53,7 @@ def test_etd_range(movbank_relocations):
gpd.testing.assert_geodataframe_equal(percentile_area, expected_percentile_area, check_less_precise=True)


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_reduce_regions(aoi_gdf):
raster_names = ["tests/sample_data/raster/mara_dem.tif"]
result = ecoscope.io.raster.reduce_region(aoi_gdf, raster_names, np.mean)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import pandas as pd
import pytest

from ecoscope.base.utils import ModisBegin


@pytest.mark.skip(reason="this has been failing since May 2022; will be fixed in a follow-up pull")
def test_modis_offset():
ts1 = pd.Timestamp("2022-01-13 17:00:00+0")
ts2 = pd.Timestamp("2022-12-26 17:00:00+0")
Expand Down

0 comments on commit 875a7af

Please sign in to comment.