spelling fix

This commit is contained in:
Trent Palmer 2021-04-25 20:07:13 -07:00
parent 0cd01577be
commit d70bcb2d77
2 changed files with 3 additions and 3 deletions

View File

@ -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>'

View File

@ -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))