Thanks to visit codestin.com Credit goes to github.com
There was an error while loading. Please reload this page.
1 parent 14d7013 commit d099d55Copy full SHA for d099d55
2 files changed
apps/blogs/tests/test_views.py
@@ -74,3 +74,5 @@ def test_page_shows_the_limit_with_the_newest_in_the_header(self):
74
75
self.assertEqual(resp.context["latest_entry"].title, "Post 0")
76
self.assertEqual(len(resp.context["entries"]), ENTRY_LIST_LIMIT - 1)
77
+ # Pin the concrete count too, so reverting the constant is caught.
78
+ self.assertEqual(len(resp.context["entries"]), 14)
templates/components/blog-posts.html
@@ -2,7 +2,7 @@
2
<div class="shrubbery">
3
4
<h2 class="widget-title"><span aria-hidden="true" class="icon-news"></span>Latest News</h2>
5
- <p class="give-me-more"><a href="{% url 'blog' %}" title="More News">More</a></p>
+ <p class="give-me-more"><a href="{% url 'blog' %}">More news</a></p>
6
7
<ul class="menu">
8
{% get_latest_blog_entries limit=5 as entries %}
0 commit comments