Update tests
This commit is contained in:
parent
19ef62758a
commit
c915be97bb
5 changed files with 6 additions and 6 deletions
|
@ -28,13 +28,13 @@ def limit(line, length):
|
|||
def get_title(instance):
|
||||
return (
|
||||
get_attribute(instance, 'title') or (hasattr(instance, 'page') and get_attribute(instance.page, 'name')) or get_attribute(instance, 'name') or ''
|
||||
).title()
|
||||
)
|
||||
|
||||
|
||||
def get_html_title(instance):
|
||||
return (
|
||||
get_attribute(instance, 'html_title') or get_title(instance)
|
||||
).title()
|
||||
)
|
||||
|
||||
|
||||
def get_image(instance):
|
||||
|
|
|
@ -51,7 +51,7 @@ class CommonPagesTestCase(TestCase):
|
|||
def test_footer_links(self):
|
||||
content = self.client.get('index.html')
|
||||
footer = content.footer
|
||||
for link in footer.find('p', class_="social").find_all('a'):
|
||||
for link in footer.find('h2', class_="social").find_all('a'):
|
||||
self.assertIn(link.attrs['alt'], social_settings['footer_accounts'])
|
||||
self.assertIn("fa fa-", str(list(link.children)[0]))
|
||||
|
||||
|
|
|
@ -28,8 +28,8 @@ footer {
|
|||
}
|
||||
|
||||
.social {
|
||||
margin-bottom: 25px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 25px;
|
||||
|
||||
a {
|
||||
margin: 0 5px;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
|
||||
.outer-gutter {
|
||||
padding: 0 $grid-gutter-width / 2;
|
||||
@extend .no-gutter;
|
||||
|
||||
padding: 0 $grid-gutter-width / 2;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div class="col-xs-12">
|
||||
<h2 class="social">
|
||||
{% for link in FOOTER_LINKS %}
|
||||
<a href="{{ link.url }}" class="footer-link"><i class="fa {{ link.icon }}"></i></a>
|
||||
<a href="{{ link.url }}" alt="{{ link.key }}" class="footer-link"><i class="fa {{ link.icon }}"></i></a>
|
||||
{% endfor %}
|
||||
</h2>
|
||||
</div>
|
||||
|
|
Reference in a new issue