From bfdf2e6bc3517a1495e77664271913fc298cdbf8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 17:18:08 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20dependency=20?= =?UTF-8?q?pytest=20to=20v9.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- uv.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b99ce49..7f63dfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dev = [ "prek==0.5.10", "pre-commit-hooks==6.0.0", "pylint==4.1.3", - "pytest==9.1.1", + "pytest==9.2.0", "pytest-asyncio==1.4.1.post1", "pytest-cov==7.1.0", "ruff==0.17.4", diff --git a/uv.lock b/uv.lock index d5be07e..c2389bc 100644 --- a/uv.lock +++ b/uv.lock @@ -1533,7 +1533,7 @@ wheels = [ [[package]] name = "pytest" -version = "9.1.1" +version = "9.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, @@ -1542,9 +1542,9 @@ dependencies = [ { name = "pluggy" }, { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" } +sdist = { url = "https://files.pythonhosted.org/packages/79/42/bb4641652e58dedeac2ec51abc1f8cae4fee4ec63899a0999016229a0f2a/pytest-9.2.0.tar.gz", hash = "sha256:97c4f3b1f3c7414aa36465e09b8220f1d03627993bd51b1282e193753c80557b", size = 1797555, upload-time = "2026-10-27T21:30:20.728Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" }, + { url = "https://files.pythonhosted.org/packages/51/39/1f5d8c8877a0fa327db959c19341d4be61660de1ab6b7391f9eb805bcd67/pytest-9.2.0-py3-none-any.whl", hash = "sha256:07acdcf88ec174f907dc01af70bf52d49b014bbab03faeeade31c96b18c2e588", size = 411776, upload-time = "2026-10-27T21:30:19.131Z" }, ] [[package]] @@ -1618,7 +1618,7 @@ dev = [ { name = "pre-commit-hooks", specifier = "==6.0.0" }, { name = "prek", specifier = "==0.5.10" }, { name = "pylint", specifier = "==4.1.3" }, - { name = "pytest", specifier = "==9.1.1" }, + { name = "pytest", specifier = "==9.2.0" }, { name = "pytest-asyncio", specifier = "==1.4.1.post1" }, { name = "pytest-cov", specifier = "==7.1.0" }, { name = "ruff", specifier = "==0.17.4" }, From 6c1cce694a93b509506ed97a32e6315d3099a0f4 Mon Sep 17 00:00:00 2001 From: Joostlek Date: Tue, 10 Nov 2026 18:18:28 +0100 Subject: [PATCH 2/2] Use public pytest.approx in radius tests pytest 9.2 removed the private _pytest.python_api module. Co-Authored-By: Claude Opus 5.5 --- tests/test_radius.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/test_radius.py b/tests/test_radius.py index b666a62..8551d62 100644 --- a/tests/test_radius.py +++ b/tests/test_radius.py @@ -1,7 +1,6 @@ """Tests for the OpenSky Library.""" import pytest -from _pytest.python_api import approx from python_opensky import ( BoundingBox, @@ -79,13 +78,17 @@ async def test_calculating_bounding_box( ) -> None: """Test calculating bounding box.""" res_bounding_box = OpenSky.get_bounding_box(latitude, longitude, radius) - assert res_bounding_box.min_latitude == approx(bounding_box.min_latitude, PRECISION) - assert res_bounding_box.max_latitude == approx(bounding_box.max_latitude, PRECISION) - assert res_bounding_box.min_longitude == approx( + assert res_bounding_box.min_latitude == pytest.approx( + bounding_box.min_latitude, PRECISION + ) + assert res_bounding_box.max_latitude == pytest.approx( + bounding_box.max_latitude, PRECISION + ) + assert res_bounding_box.min_longitude == pytest.approx( bounding_box.min_longitude, PRECISION, ) - assert res_bounding_box.max_longitude == approx( + assert res_bounding_box.max_longitude == pytest.approx( bounding_box.max_longitude, PRECISION, )