mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-21 17:11:30 -08:00
spelling fix
This commit is contained in:
parent
0cd01577be
commit
d70bcb2d77
@ -1,7 +1,7 @@
|
||||
from tp.settings import IMAGES_URL
|
||||
|
||||
|
||||
def get_ep_a_description(feed_x, episode_x):
|
||||
def get_ep_description(feed_x, episode_x):
|
||||
a = f'<h1>{episode_x}</h1>'
|
||||
b = f'<img src="{IMAGES_URL}{episode_x.image.name}">'
|
||||
c = f'<p>{episode_x.description}</p>'
|
||||
|
@ -7,7 +7,7 @@ from dateutil import parser
|
||||
from django.urls import reverse
|
||||
import xml.etree.ElementTree as ET
|
||||
from tp.settings import IMAGES_URL, MP3_URL
|
||||
from .string_test_string import get_ep_a_description
|
||||
from .string_test_string import get_ep_description
|
||||
|
||||
|
||||
class TestRssTestCase(TestCase):
|
||||
@ -84,7 +84,7 @@ class TestRssTestCase(TestCase):
|
||||
ep_desc = ep.find('description').text
|
||||
self.assertEquals(
|
||||
ep_desc,
|
||||
get_ep_a_description(feed_a, episode)
|
||||
get_ep_description(feed_a, episode)
|
||||
)
|
||||
ep_pub_date = parser.parse(ep.find('pubDate').text).strftime('%Y-%m-%d')
|
||||
self.assertEquals(ep_pub_date, str(episode.pub_date))
|
||||
|
Loading…
Reference in New Issue
Block a user