Skip to content

Commit

Permalink
Fix missing images key in save tests
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyheppell committed Dec 16, 2024
1 parent 062a62c commit 929d1e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tree/test_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def test_page_to_dict(self, tree, tmp_path):
2009, 12, 17, 12, 4, 56, tzinfo=tzoffset(None, 7200)
),
"change_frequency": "monthly",
"images": None,
"news_story": None,
},
{
Expand All @@ -66,13 +67,15 @@ def test_page_to_dict(self, tree, tmp_path):
2009, 12, 17, 12, 4, 56, tzinfo=tzoffset(None, 7200)
),
"change_frequency": "always",
"images": None,
"news_story": None,
},
{
"url": "http://test_ultimate-sitemap-parser.com/news/foo.html",
"priority": Decimal("0.5"),
"last_modified": None,
"change_frequency": None,
"images": None,
"news_story": {
"title": "Foo <foo>",
"publish_date": datetime.datetime(
Expand All @@ -91,6 +94,7 @@ def test_page_to_dict(self, tree, tmp_path):
"priority": Decimal("0.5"),
"last_modified": None,
"change_frequency": None,
"images": None,
"news_story": {
"title": "Bar & bar",
"publish_date": datetime.datetime(
Expand All @@ -109,6 +113,7 @@ def test_page_to_dict(self, tree, tmp_path):
"priority": Decimal("0.5"),
"last_modified": None,
"change_frequency": None,
"images": None,
"news_story": {
"title": "Bar & bar",
"publish_date": datetime.datetime(
Expand All @@ -127,6 +132,7 @@ def test_page_to_dict(self, tree, tmp_path):
"priority": Decimal("0.5"),
"last_modified": None,
"change_frequency": None,
"images": None,
"news_story": {
"title": "Bąž",
"publish_date": datetime.datetime(
Expand Down

0 comments on commit 929d1e8

Please sign in to comment.