Skip to content

Commit

Permalink
split up
Browse files Browse the repository at this point in the history
  • Loading branch information
HansVRP committed Sep 24, 2024
1 parent e5db130 commit 5932e3f
Show file tree
Hide file tree
Showing 35 changed files with 8 additions and 8 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions tests/resources/polygons_s2_cdse/job-results.json

Large diffs are not rendered by default.

Binary file added tests/resources/polygons_s2_cdse/openEO_0.nc
Binary file not shown.
Binary file added tests/resources/polygons_s2_cdse/openEO_1.nc
Binary file not shown.
Binary file added tests/resources/polygons_s2_cdse/openEO_2.nc
Binary file not shown.
Binary file added tests/resources/polygons_s2_cdse/openEO_3.nc
Binary file not shown.
Binary file added tests/resources/polygons_s2_cdse/openEO_4.nc
Binary file not shown.
Binary file added tests/resources/polygons_s2_cdse/openEO_5.nc
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from openeo_gfmap.backend import cdse_connection, vito_connection


def test_vito_connection_auth():
con = vito_connection()
info = con.describe_account()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from openeo_gfmap.preprocessing.cloudmasking import mask_scl_dilation
from openeo_gfmap.preprocessing.compositing import median_compositing

from .utils import load_dataarray_url
from tests.utils.helpers import load_dataarray_url

spatial_context = BoundingBoxExtent(
west=5.0, south=51.2, east=5.025, north=51.225, epsg=4326
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
select_sar_bands,
)

#TODO to centralize
# Retrieve the test parameters from the s2 fetcher tests
from .test_s2_fetchers import POINT_EXTRACTION_DF, test_backends, test_configurations
from tests.tests_integration.test_s2_fetchers import POINT_EXTRACTION_DF, test_backends, test_configurations


# integration test checks if the output S1 cube has the correct band names;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@

# Dataset of polygons for POINT based extraction
POINT_EXTRACTION_DF = (
Path(__file__).parent / "resources/malawi_extraction_polygons.gpkg"
Path(__file__).parent / "tests/resources/malawi_extraction_polygons.gpkg"
)

# Datase of polygons for Polygon based extraction
POLYGON_EXTRACTION_DF = (
Path(__file__).parent / "resources/puglia_extraction_polygons.gpkg"
Path(__file__).parent / "tests/resources/puglia_extraction_polygons.gpkg"
)

# test_backends = [Backend.TERRASCOPE, Backend.CDSE]
Expand Down
File renamed without changes.
Empty file added tests/tests_unit/__init__.py
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
ELEMENT84_SENTINEL2_L2A_MAPPING,
)

from .utils import create_test_datacube
from tests.utils.helpers import create_test_datacube

# band names

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
_get_s2_l2a_default_processor,
)

from .utils import create_test_datacube
from tests.utils.helpers import create_test_datacube

# Mock constants for the tests
BANDS = ["S2-L2A-B01", "S2-L2A-B02"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from openeo_gfmap.spatial import BoundingBoxExtent


class TestBoundingBoxExtent:
def test_basic(self):
bbox = BoundingBoxExtent(1, 2, 3, 4)
Expand Down
Empty file added tests/utils/__init__.py
Empty file.
File renamed without changes.

0 comments on commit 5932e3f

Please sign in to comment.