Parcourir la source

Adding integration test for API Examples view

David Leonard il y a 10 ans
Parent
commit
504ef22502
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      hackathon_starter/hackathon/tests.py

+ 5 - 0
hackathon_starter/hackathon/tests.py

@@ -1,3 +1,8 @@
 from django.test import TestCase
 
 # Create your tests here.
+
+class HackathonViewsTestCase(TestCase):
+	def testIndex(self):
+		resp = self.client.get('/hackathon/api/')
+		self.assertEqual(resp.status_code, 200)