X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/968f1cd45393015975e658fc6b70065a3bfd3c94..cd08956c610f224096ae831a59eb0412faaaeaad:/test/python/api/test_api_connection.py diff --git a/test/python/api/test_api_connection.py b/test/python/api/test_api_connection.py index f62b0d9e..9b29411a 100644 --- a/test/python/api/test_api_connection.py +++ b/test/python/api/test_api_connection.py @@ -2,12 +2,11 @@ # # 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 enhanced connection class for API functions. """ -from pathlib import Path import pytest import sqlalchemy as sa @@ -76,7 +75,7 @@ async def test_get_db_property_existing(api): @pytest.mark.asyncio -async def test_get_db_property_existing(api): +async def test_get_db_property_bad_name(api): async with api.begin() as conn: with pytest.raises(ValueError): await conn.get_db_property('dfkgjd.rijg')