瀏覽代碼

Adding integration tests for stock data endpoints

David Leonard 10 年之前
父節點
當前提交
3542a60144
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      hackathon_starter/hackathon/tests.py

+ 13 - 1
hackathon_starter/hackathon/tests.py

@@ -13,4 +13,16 @@ class HackathonViewsTestCase(TestCase):
 
 	def testSteamDiscountedGames(self):
 		resp = self.client.get('/hackathon/steamDiscountedGames/')
-		self.assertEqual(resp.status_code, 200)
+		self.assertEqual(resp.status_code, 200)
+
+	def testQuandlDowJones(self):
+		resp = self.client.get('/hackathon/quandlDowJones/')
+		self.assertEqual(resp.status_code, 200)
+
+	def testQuandlSnp500(self):
+		resp = self.client.get('/hackathon/quandlSnp500')
+		self.assertEqual(resp.status_code, 301)
+
+	def testQuandlNasdaq(self):
+		resp = self.client.get('/hackathon/quandlNasdaq')
+		self.assertEqual(resp.status_code, 301)