Skip to content

Commit

Permalink
add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Josey authored and Drew Josey committed Sep 9, 2024
1 parent 00a1be3 commit 4e94438
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
30 changes: 28 additions & 2 deletions tests/test_feeds/episode.rss
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,34 @@ Play CORVETTE TODAY on your smart device too! Just say, "Hey Alexa (or hey Googl
</itunes:owner>
<itunes:duration>2785</itunes:duration>
<guid>adori-8d2abc8f-65a4-401f-a6ef-45d86a24e0be</guid>
<pubDate>Mon, 22 Dec 2023 14:00:00 +0800</pubDate>
<pubDate>Mon, 22 Dec 2023 14:00:00 -0800</pubDate>
<itunes:explicit>false</itunes:explicit>
<itunes:season>3</itunes:season>
<itunes:episode>111</itunes:episode>
<itunes:episodeType>FULL</itunes:episodeType>
<itunes:image href="https://cdn.images.adorilabs.com/v1/df2e8faf-d164-4b52-b101-437415245524.png" />
<enclosure url="https://static.adorilabs.com/audiotracks/episode--ep_esWWrdyNUgFEakL0TmTuLX9e0xjg0eBHx/v1/17773-ID6aGhYYXWHO7v5v-9b049e80-b77c-4069-8121-4b2fcc2a8b45-12017.mp3" length="32138878" type="audio/mpeg" />
<adori:interactive>yes</adori:interactive>
<ihr:interactive>NO</ihr:interactive>
<adori:interactiveTagCount>0</adori:interactiveTagCount>
<ihr:interactiveTagCount>0</ihr:interactiveTagCount>
</item>
<item>
<title>CORVETTE TODAY #111 - Corvette News &amp; Headlines, Early June 2020</title>
<link>https://podcasts.adorilabs.com/show/e?eid=ID6aGhYYXWHO7v5v</link>
<author>Steve Garrett</author>
<itunes:author>Steve Garrett</itunes:author>
<content:encoded>test</content:encoded>
<description>description</description>
<itunes:summary><![CDATA[<div><span >It's the unofficial start to Summer and CORVETTE TODAY is shining brightly with news and headlines with Keith Cornett from </span><a href="http://corvetteblogger.com/" target="_blank" rel="noopener noreferrer">CorvetteBlogger.com</a><span >.</span><br></div><div><br></div><p>It seems as though there never a shortage of Corvette information buzzing around. And this week is no exception.&nbsp;</p><p><br></p><p>&nbsp;Here are a few of the topics covered in this show…..</p><div><p><br></p><p> 1. Corvette raises destination charge by $100 to $1,395</p><p> 2. Chevrolet adds 2 new videos to C8 Z06 Academy</p><p></p><p> 3. NCM names Brian Baker as Director of Collections &amp; Education</p><p> 4. Trifecta Performance claims to have cracked the ECM on the C8</p><p></p><p> 5. The online 2023 Z06 Owner's Manual confirms the Z06 to go 200 mph</p><p> 6. Corvette brings home the eNVy award for best premium sports car</p><p></p><p> 7. Chevrolet not going to SEMA this year</p><p> 8. Collection of Indy 500 Pace Cars sells for $1.375m at Mecum Indy.</p><div><br></div><div>Start your Summer off right with CORVETTE TODAY on podcast and YouTube!</div><div><br></div><div><br></div><div><b>Listen to the show, watch the YouTube video, visit the website, sign up for CORVETTE TODAY email notifications&nbsp;</b><b >and join the Facebook group at:</b></div><div><br></div><div><br></div><div><a href="http://www.corvettetodaypodcast.com/" target="_blank" rel="noopener noreferrer">www.CorvetteTodayPodcast.com</a></div></div>]]></itunes:summary>
<itunes:subtitle>News &amp; Headlines, Early June 2022</itunes:subtitle>
<itunes:owner>
<itunes:name>Steve Garrett</itunes:name>
<itunes:email>[email protected]</itunes:email>
</itunes:owner>
<itunes:duration>2785</itunes:duration>
<guid>adori-8d2abc8f-65a4-401f-a6ef-45d86a24e0be</guid>
<pubDate>Mon, 22 Dec 2023 14:00:00 +1200</pubDate>
<itunes:explicit>false</itunes:explicit>
<itunes:season>3</itunes:season>
<itunes:episode>111</itunes:episode>
Expand All @@ -234,4 +261,3 @@ Play CORVETTE TODAY on your smart device too! Just say, "Hey Alexa (or hey Googl
<adori:interactiveTagCount>0</adori:interactiveTagCount>
<ihr:interactiveTagCount>0</ihr:interactiveTagCount>
</item>

3 changes: 2 additions & 1 deletion tests/test_pyPodcastParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ def test_episode_meta_data_pub_date(self):
self.podcast.items[5].published_date, "2023-07-06 04:00:00"
) # PDT TO EST

self.assertEqual(self.podcast.items[6].published_date, "2023-12-22 01:00:00")
self.assertEqual(self.podcast.items[6].published_date, "2023-12-22 17:00:00")
self.assertEqual(self.podcast.items[7].published_date, "2023-12-21 20:00:00")

def test_episode_meta_data_external_image_url(self):
self.assertEqual(
Expand Down

0 comments on commit 4e94438

Please sign in to comment.