From 65ac1b0dcd78559cb4de9c4edc3d98b03bf17742 Mon Sep 17 00:00:00 2001 From: redshift <213178690+1ftredsh@users.noreply.github.com> Date: Thu, 2 Jul 2026 20:15:00 +0530 Subject: [PATCH] remove test for .well-known/ bypass (path no longer routed) The .well-known/ path was removed from Tinfoil attestation routing since Tinfoil doesn't use it. The test that asserted GET /.well-known/ bypasses model lookup is no longer valid. --- .../test_proxy_tinfoil_attestation_routing.py | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/tests/unit/test_proxy_tinfoil_attestation_routing.py b/tests/unit/test_proxy_tinfoil_attestation_routing.py index 6d76029f..35b618ca 100644 --- a/tests/unit/test_proxy_tinfoil_attestation_routing.py +++ b/tests/unit/test_proxy_tinfoil_attestation_routing.py @@ -93,26 +93,3 @@ def test_attestation_upstream_selection_is_tinfoil_only() -> None: "tee/other", [non_tinfoil, tinfoil] ) == [non_tinfoil, tinfoil] - -@pytest.mark.asyncio -async def test_well_known_get_bypasses_model_lookup( - monkeypatch: pytest.MonkeyPatch, proxy_app: FastAPI -) -> None: - upstream = MagicMock() - upstream.provider_type = "openai" - upstream.prepare_headers = MagicMock(return_value={}) - upstream.forward_get_request = AsyncMock( - return_value=Response(status_code=200, content=b"lnurl metadata") - ) - - monkeypatch.setattr(proxy_module, "_upstreams", [upstream]) - monkeypatch.setattr(proxy_module, "get_model_instance", MagicMock(side_effect=AssertionError)) - - async with AsyncClient( - transport=ASGITransport(app=proxy_app), base_url="http://test" # type: ignore[arg-type] - ) as client: - response = await client.get("/.well-known/lnurlp/alice") - - assert response.status_code == 200 - assert response.content == b"lnurl metadata" - upstream.forward_get_request.assert_awaited_once()