logout test

This commit is contained in:
Guilhem Saurel 2016-06-12 22:19:01 +02:00
parent b3b14fbeb1
commit b92f79c010
2 changed files with 2 additions and 1 deletions

View File

@ -39,3 +39,4 @@ class AccountTests(TestCase):
user = User.objects.get(username='z')
self.assertEqual(user.email, 'b@newdomain.com')
self.assertEqual(user.profile.biography, 'tester')
self.client.logout()

View File

@ -17,7 +17,7 @@
<a href="{% url 'show-speaker' speaker.username %}">{{ speaker }}</a>
{% if forloop.revcounter == 2 %} and {% elif not forloop.last %}, {% endif %}
{% endfor %}
<a class="btn btn-primary" href="{% url 'edit-talk' talk.slug %}">edit</a>
<a class="btn btn-primary btn-xs" href="{% url 'edit-talk' talk.slug %}">edit</a>
</li>
{% empty %}
<li>No proposed talk.</li>