Skip to content

Commit fe1f42d

Browse files
committed
Timeline: Add basic test for the timeline view
1 parent 0626af3 commit fe1f42d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

pydis_site/apps/timeline/tests/__init__.py

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from django.test import TestCase
2+
from django.urls import reverse
3+
4+
5+
class TestIndexReturns200(TestCase):
6+
def test_index_returns_200(self):
7+
"""Check that the index page returns a HTTP 200 response."""
8+
url = reverse('timeline:index')
9+
resp = self.client.get(url)
10+
self.assertEqual(resp.status_code, 200)

0 commit comments

Comments
 (0)