Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hackathon_site/event/jinja2/event/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</li>
{% else %}
<li>
<a href="{{ url("event:login") }}" class="btn-small waves-effect waves-light colorBtn">Login</a>
<a href="#interest" class="btn-small waves-effect waves-light colorBtn">Register Your Interest</a>
</li>
{% endif %}
{% endblock %}
Expand Down
5 changes: 3 additions & 2 deletions hackathon_site/event/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class IndexViewTestCase(SetupUserMixin, TestCase):
"""
Tests for the landing page template.

We test for correct rendering and rendering of Logout/Login buttons
We test for correct rendering and rendering of Logout/Register Your Interest buttons
"""

def setUp(self):
Expand All @@ -95,7 +95,8 @@ def setUp(self):
def test_index_view(self):
response = self.client.get(self.view)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertContains(response, "Login")
self.assertContains(response, "Register Your Interest")
self.assertContains(response, 'href="#interest"')
self.assertContains(response, "Apply")
self.assertContains(response, reverse("registration:signup"))

Expand Down
Loading