diff --git a/src/youdotcom/sdk.py b/src/youdotcom/sdk.py index 585b673..eebd0d4 100644 --- a/src/youdotcom/sdk.py +++ b/src/youdotcom/sdk.py @@ -122,7 +122,7 @@ def _build_search_request( if strip_crawl_timeout and crawl_timeout is not None: # Resolved inside the branch so the common path never forces # ``models.SearchRequestBody`` to load (the lazy package root is what - # keeps ``import youdotcom`` transport-free -- see DX-776). + # keeps ``import youdotcom`` transport-free). # # astroid cannot infer attributes through the PEP 562 ``__getattr__`` # in ``models/__init__.py``, so it types ``model_fields`` as an diff --git a/tests/test_attribution.py b/tests/test_attribution.py index 3a5dc1e..869dd12 100644 --- a/tests/test_attribution.py +++ b/tests/test_attribution.py @@ -394,7 +394,7 @@ def test_caller_supplied_http_headers_override_case_insensitive(self): class TestMcpAttributionNeverSent: """The SDK must never emit ``X-MCP-Attribution``. - Per DX-777: that header is assembled on the MCP server, which is the only + That header is assembled on the MCP server, which is the only layer that can populate its ``keyless`` / ``payment`` / ``ip`` flags. The SDK sits outside Cloudflare and has no ``CF-Connecting-IP`` to read, so emitting it here would fabricate routing flags that the downstream diff --git a/tests/test_live.py b/tests/test_live.py index 1be5b40..2f8d320 100644 --- a/tests/test_live.py +++ b/tests/test_live.py @@ -1056,7 +1056,7 @@ async def test_async_answer(self, you_client): @requires_api_key class TestLiveAttribution: - """The ``X-Client-Info`` header on real requests (DX-777). + """The ``X-Client-Info`` header on real requests. The mock-transport tests in ``tests/test_attribution.py`` pin the wire format; what they cannot show is that the real API *accepts* the header. diff --git a/tests/test_page_age.py b/tests/test_page_age.py index 545046b..4516516 100644 --- a/tests/test_page_age.py +++ b/tests/test_page_age.py @@ -1,4 +1,4 @@ -"""Tolerance of non-ISO ``page_age`` values on search and news results (DX-815). +"""Tolerance of non-ISO ``page_age`` values on search and news results. The spec types ``page_age`` as ``format: date-time``, but a US-locale timestamp (``7/29/2024 10:38:56 AM``) was observed in production. Pydantic rejected it, diff --git a/tests/test_performance.py b/tests/test_performance.py index 4baa604..c1244fa 100644 --- a/tests/test_performance.py +++ b/tests/test_performance.py @@ -499,7 +499,7 @@ def call(): # ---------------------------------------------------------------- # Extraction-mode performance cases parallel the livecrawl cases. - # DX-719 added these alongside the legacy livecrawl cases (the + # These were added alongside the legacy livecrawl cases (the # legacy cases remain because `livecrawl` is supported until 4.0.0). # ---------------------------------------------------------------- diff --git a/tests/test_researchtaskstreamevent.py b/tests/test_researchtaskstreamevent.py index 45bacae..3a1fb0e 100644 --- a/tests/test_researchtaskstreamevent.py +++ b/tests/test_researchtaskstreamevent.py @@ -188,7 +188,7 @@ def test_typed_dict_annotation_matches_model(self) -> None: class TestStreamDecodePath: - """End-to-end pin through the real SSE decode path (DX-778). + """End-to-end pin through the real SSE decode path. The tests above validate the model directly. That is not the path a caller exercises: ``stream_research_task`` wraps every SSE frame in @@ -202,7 +202,7 @@ class TestStreamDecodePath: _FRAMES = [ b"id: 0\nevent: connected\ndata: " b'{"type":"connected","task_id":"abc","status":"running"}\n\n', - # Not in the Event enum -- the exact case DX-778 is about. + # Not in the Event enum -- the exact case this class is about. b"id: 1\nevent: research.searching\ndata: " b'{"type":"research.searching","task_id":"abc","status":"running"}\n\n', b"id: 2\nevent: checkpoint\ndata: "