Update pagination_info format in SEO helper tests to use a list
This commit is contained in:
parent
f004307c9c
commit
85bdf572c5
1 changed files with 2 additions and 2 deletions
|
|
@ -899,7 +899,7 @@ class TestSEOHelperFunctions:
|
|||
og_type="article",
|
||||
schema_data={},
|
||||
breadcrumb_schema=breadcrumb, # pyright: ignore[reportArgumentType]
|
||||
pagination_info={"rel": "next", "url": "/page/2/"},
|
||||
pagination_info=[{"rel": "next", "url": "/page/2/"}],
|
||||
published_date=now.isoformat(),
|
||||
modified_date=now.isoformat(),
|
||||
robots_directive="noindex, follow",
|
||||
|
|
@ -907,7 +907,7 @@ class TestSEOHelperFunctions:
|
|||
|
||||
# breadcrumb_schema is JSON-dumped, so parse it back
|
||||
assert json.loads(context["breadcrumb_schema"]) == breadcrumb
|
||||
assert context["pagination_info"] == {"rel": "next", "url": "/page/2/"}
|
||||
assert context["pagination_info"] == [{"rel": "next", "url": "/page/2/"}]
|
||||
assert context["published_date"] == now.isoformat()
|
||||
assert context["modified_date"] == now.isoformat()
|
||||
assert context["robots_directive"] == "noindex, follow"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue