Parcourir la source

Adding integration test for steam discounts endpoint

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

+ 5 - 1
hackathon_starter/hackathon/tests.py

@@ -9,4 +9,8 @@ class HackathonViewsTestCase(TestCase):
 
 	def testSteam(self):
 		resp = self.client.get('/hackathon/steam')
-		self.assertEqual(resp.status_code, 301)
+		self.assertEqual(resp.status_code, 301)
+
+	def testSteamDiscountedGames(self):
+		resp = self.client.get('/hackathon/steamDiscountedGames/')
+		self.assertEqual(resp.status_code, 200)