Pārlūkot izejas kodu

Refactoring Steam/ tests into own test class

David Leonard 10 gadi atpakaļ
vecāks
revīzija
968d6394c1
1 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  1. 6 4
      hackathon_starter/hackathon/tests.py

+ 6 - 4
hackathon_starter/hackathon/tests.py

@@ -2,11 +2,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)
 
+class SteamViewTestCase(TestCase):
 	def testSteam(self):
 		resp = self.client.get('/hackathon/steam/')
 		self.assertEqual(resp.status_code, 200)
@@ -40,6 +37,11 @@ class HackathonViewsTestCase(TestCase):
 				self.assertTrue('appid' in dict)
 
 
+class HackathonViewsTestCase(TestCase):
+	def testIndex(self):
+		resp = self.client.get('/hackathon/api/')
+		self.assertEqual(resp.status_code, 200)
+
 	def testQuandlDowJones(self):
 		resp = self.client.get('/hackathon/quandlDowJones/')
 		self.assertEqual(resp.status_code, 200)