Skip to content

Commit

Permalink
adjust test imports, set black conventions to include py312
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed May 14, 2024
1 parent e12c98f commit 30f3714
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 17 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ raven-wps = "raven.cli:cli"
target-version = [
"py39",
"py310",
"py311"
"py311",
"py312"
]

[tool.bumpversion]
Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_caps.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from common import client_for
from pywps import Service

from raven.processes import processes

from .common import client_for


def test_wps_caps():
client = client_for(Service(processes=processes))
Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_client.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from common import client_for
from pywps import Service

from raven.processes import processes

from .common import client_for

URL = "http://localhost:9099"


Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_generic_raster_subset.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import tempfile

import rasterio as rio
from common import CFG_FILE, client_for, get_output
from metalink import download as md
from pywps import Service
from pywps.tests import assert_response_success

from raven.processes import RasterSubsetProcess

from .common import CFG_FILE, client_for, get_output


class TestGenericRasterSubsetProcess:
def test_simple(self, get_local_testdata):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_generic_shape_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

import geojson
import numpy as np
from common import CFG_FILE, client_for, get_output
from pywps import Service
from pywps.tests import assert_response_success

from raven.processes import ShapePropertiesProcess

from .common import CFG_FILE, client_for, get_output


class TestGenericShapePropertiesProcess:
@staticmethod
Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_generic_terrain_analysis.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import json

import pytest
from common import CFG_FILE, client_for, get_output
from pywps import Service
from pywps.tests import assert_response_success

from raven.processes import TerrainAnalysisProcess

from .common import CFG_FILE, client_for, get_output


class TestGenericTerrainAnalysisProcess:
def test_shape_subset(self, get_local_testdata):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_generic_zonal_stats.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import json

import pytest
from common import CFG_FILE, client_for, count_pixels, get_output
from pywps import Service
from pywps.tests import assert_response_success
from shapely.geometry import MultiPolygon, shape

from raven.processes import ZonalStatisticsProcess

from .common import CFG_FILE, client_for, count_pixels, get_output


class TestGenericZonalStatsProcess:
def test_simple(self, get_local_testdata):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_hydrobasins_shape_selection.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import json

import pytest
from common import CFG_FILE, client_for, get_output
from pywps import Service
from pywps.tests import assert_response_success

from raven.processes import HydroBasinsSelectionProcess
from raven.utils import parse_lonlat

from .common import CFG_FILE, client_for, get_output


class TestParser:
def test_parse_lonlat(self):
Expand Down
3 changes: 1 addition & 2 deletions tests/test_wps_nalcms_zonal_stats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json

import pytest
from common import CFG_FILE, client_for, count_pixels, get_output
from metalink import download as md
from pywps import Service, get_ElementMakerForVersion
from pywps.app.basic import get_xpath_ns
Expand All @@ -12,8 +13,6 @@
NALCMSZonalStatisticsRasterProcess,
)

from .common import CFG_FILE, client_for, count_pixels, get_output

VERSION = "1.0.0"
WPS, OWS = get_ElementMakerForVersion(VERSION)
xpath_ns = get_xpath_ns(VERSION)
Expand Down

0 comments on commit 30f3714

Please sign in to comment.