From 23a6eafbc641b52c1283e29a504d5fa7fcd2604a Mon Sep 17 00:00:00 2001 From: 9qeklajc <211699015+9qeklajc@users.noreply.github.com> Date: Mon, 21 Sep 2026 23:07:48 +0200 Subject: [PATCH] fix(tests): narrow provider.id to int for mypy in the certify endpoint tests --- tests/integration/test_certify_endpoint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/test_certify_endpoint.py b/tests/integration/test_certify_endpoint.py index 3f5b040f..49ec7de5 100644 --- a/tests/integration/test_certify_endpoint.py +++ b/tests/integration/test_certify_endpoint.py @@ -121,6 +121,7 @@ async def _seed_and_init( provider = await _make_provider( session, provider_fee=provider_fee, base_url=base_url ) + assert provider.id is not None session.add( _model_row( provider.id, @@ -475,6 +476,7 @@ async def test_certify_with_no_served_model( unusable pricing), the live checks should be skipped as warn, not crash.""" provider = await _make_provider(integration_session) + assert provider.id is not None # A negative prompt price makes has_usable_pricing() return False, # withholding the model from the served map. session_add = _model_row(