X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/671af4cff24ed671bed414160a73ea3541907d29..4cc788f69e1191d2dd985aeac143597566529f24:/test/python/api/test_api_polygons_v1.py diff --git a/test/python/api/test_api_polygons_v1.py b/test/python/api/test_api_polygons_v1.py index ac2b4cb9..e4700a95 100644 --- a/test/python/api/test_api_polygons_v1.py +++ b/test/python/api/test_api_polygons_v1.py @@ -2,21 +2,21 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2024 by the Nominatim developer community. +# Copyright (C) 2025 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for the deletable v1 API call. """ import json import datetime as dt -from pathlib import Path import pytest -from fake_adaptor import FakeAdaptor, FakeError, FakeResponse +from fake_adaptor import FakeAdaptor import nominatim_api.v1.server_glue as glue + class TestPolygonsEndPoint: @pytest.fixture(autouse=True) @@ -35,13 +35,12 @@ class TestPolygonsEndPoint: errormessage text, prevgeometry geometry(Geometry,4326), newgeometry geometry(Geometry,4326)""", - content=[(345, 'N', 'boundary', 'administrative', - {'name': 'Foo'}, 'xx', self.recent, - 'some text', None, None), - (781, 'R', 'landuse', 'wood', - None, 'ds', self.now, - 'Area reduced by lots', None, None)]) - + content=[(345, 'N', 'boundary', 'administrative', + {'name': 'Foo'}, 'xx', self.recent, + 'some text', None, None), + (781, 'R', 'landuse', 'wood', + None, 'ds', self.now, + 'Area reduced by lots', None, None)]) @pytest.mark.asyncio async def test_polygons_simple(self, api): @@ -63,7 +62,6 @@ class TestPolygonsEndPoint: 'errormessage': 'Area reduced by lots', 'updated': self.now.isoformat(sep=' ', timespec='seconds')}] - @pytest.mark.asyncio async def test_polygons_days(self, api): a = FakeAdaptor() @@ -74,7 +72,6 @@ class TestPolygonsEndPoint: assert [r['osm_id'] for r in results] == [781] - @pytest.mark.asyncio async def test_polygons_class(self, api): a = FakeAdaptor() @@ -85,8 +82,6 @@ class TestPolygonsEndPoint: assert [r['osm_id'] for r in results] == [781] - - @pytest.mark.asyncio async def test_polygons_reduced(self, api): a = FakeAdaptor()