MCPcopy
hub / github.com/Andyyyy64/whichllm / test_extract_published_at_prefers_created_at

Function test_extract_published_at_prefers_created_at

tests/test_fetcher.py:360–367  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

358
359
360def test_extract_published_at_prefers_created_at():
361 value = _extract_published_at(
362 {
363 "createdAt": "2025-01-01T00:00:00.000Z",
364 "lastModified": "2026-01-01T00:00:00.000Z",
365 }
366 )
367 assert value == "2025-01-01T00:00:00.000Z"
368
369
370def test_extract_published_at_falls_back_to_last_modified():

Callers

nothing calls this directly

Calls 1

_extract_published_atFunction · 0.90

Tested by

no test coverage detected