Skip to content

Commit

Permalink
Fix expected RSS content
Browse files Browse the repository at this point in the history
The publish date on the webp image is now different,
since we rebased onto a change in the preceding branch,
which correctly populates this EXIF field on the new
webp file.

This affects the order if the items in the RSS feed,
and the title of the RSS feed. (possibly that last part
is a bug? But it is not today's problem.)
  • Loading branch information
tartley committed Mar 29, 2023
1 parent 9d32968 commit 0d3819a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/integration/test_demo_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_gallery_rss(build, output_dir):
parsed = rss_parser.Parser(xml=content).parse()
# and the RSS contains gallery attributes:
# TODO Should the title be the name of the gallery, not the final image in it?
assert parsed.title == 'Tesla conducts lg'
assert parsed.title == 'Tesla tower1 lg'
assert parsed.version == '2.0'
assert parsed.language == 'en'
# TODO Should the gallery description contain the content of the index.txt file?
Expand All @@ -59,6 +59,11 @@ def test_gallery_rss(build, output_dir):
link='https://example.com/galleries/demo/tesla4_lg.jpg',
publish_date='Wed, 01 Jan 2014 00:01:00 GMT',
),
dict(
title='Tesla conducts lg',
link='https://example.com/galleries/demo/tesla_conducts_lg.webp',
publish_date='Wed, 01 Jan 2014 00:02:00 GMT',
),
dict(
title='Tesla lightning1 lg',
link='https://example.com/galleries/demo/tesla_lightning1_lg.jpg',
Expand All @@ -74,11 +79,6 @@ def test_gallery_rss(build, output_dir):
link='https://example.com/galleries/demo/tesla_tower1_lg.jpg',
publish_date='Wed, 01 Jan 2014 00:05:00 GMT',
),
dict(
title='Tesla conducts lg',
link='https://example.com/galleries/demo/tesla_conducts_lg.webp',
publish_date='Mon, 27 Mar 2023 18:18:55 GMT',
),
]
# TODO The use of 'zip' here is faulty.
# It silently stops at the length of the shortest iterable
Expand Down

0 comments on commit 0d3819a

Please sign in to comment.