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