Skip to content

Add tests for NewsDownloader#13806

Merged
Frenzie merged 1 commit into
koreader:masterfrom
Frenzie:newsdownloader-tests
May 30, 2025
Merged

Add tests for NewsDownloader#13806
Frenzie merged 1 commit into
koreader:masterfrom
Frenzie:newsdownloader-tests

Conversation

@Frenzie

@Frenzie Frenzie commented May 16, 2025

Copy link
Copy Markdown
Member

To help prevent situations like #13799.

As also referenced in #13407 (comment).

Also fixes single item RSS and single entry Atom feeds in passing.

References #3073.


This change is Reviewable


describe("RSS feed parsing", function()
local rss_xml = [[
<?xml version="1.0" encoding="UTF-8" ?>

@Frenzie Frenzie May 16, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disclaimer: Copilot wrote the bulk of these fake feeds and even some of these tests, which might be testing things that verge too much into implementation details, such as feeds.rss.channel.item[1].title. I'll have to do another pass wrt that.

@Frenzie Frenzie marked this pull request as draft May 16, 2025 21:18
@Frenzie Frenzie force-pushed the newsdownloader-tests branch from dba6960 to 0da9f6e Compare May 30, 2025 16:53
@Frenzie Frenzie added this to the 2025.05 milestone May 30, 2025
@Frenzie Frenzie force-pushed the newsdownloader-tests branch from 0da9f6e to 1cc7fa4 Compare May 30, 2025 16:59
To help prevent situations like koreader#13799.

As also referenced in <koreader#13407 (comment)>.

Also fixes single item RSS and single entry Atom feeds in passing.

References koreader#3073.
@Frenzie Frenzie force-pushed the newsdownloader-tests branch from 1cc7fa4 to 7c16c57 Compare May 30, 2025 17:00
@Frenzie Frenzie marked this pull request as ready for review May 30, 2025 17:01
@Frenzie Frenzie merged commit 0257caa into koreader:master May 30, 2025
1 of 3 checks passed
@Frenzie Frenzie deleted the newsdownloader-tests branch May 30, 2025 17:20
Frenzie added a commit to Frenzie/koreader that referenced this pull request Jun 13, 2025
Frenzie added a commit that referenced this pull request Jun 13, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
To help prevent situations like koreader#13799.

As also referenced in <koreader#13407 (comment)>.

Also fixes single item RSS and single entry Atom feeds in passing.

References koreader#3073.
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant