Explorar o código

Adding integration test for steam discounts endpoint

David Leonard %!s(int64=10) %!d(string=hai) anos
pai
achega
1aa4be8af6
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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)