Skip to content

Commit 77d5f1c

Browse files
committed
Added a test for the new API help page.
- Legacy-Id: 14299
1 parent 241a8c0 commit 77d5f1c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ietf/api/tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ def test_notify_meeting_import_audio_files(self, mock_import_youtube, mock_impor
3939
r = client.post(url)
4040
self.assertEqual(r.status_code, 201)
4141

42+
def test_api_help_page(self):
43+
url = urlreverse('ietf.api.views.api_help')
44+
r = self.client.get(url)
45+
self.assertContains(r, 'The datatracker API', status_code=200)
46+
4247
class TastypieApiTestCase(ResourceTestCaseMixin, TestCase):
4348
def __init__(self, *args, **kwargs):
4449
self.apps = {}

0 commit comments

Comments
 (0)