Commits

Luke Plant  committed be73719

Fixed tests for change in Camp model

  • Participants
  • Parent commits b7f653d
  • Branches bookings

Comments (0)

Files changed (3)

File cciw/bookings/tests.py

     def create_camp(self):
         # Need to create a Camp that we can choose i.e. is in the future
         Camp.objects.create(year=get_thisyear(), number=1,
+                            minimum_age=11, maximum_age=17,
                             start_date=datetime.now() + timedelta(20),
                             end_date=datetime.now() + timedelta(27),
                             site_id=1)

File cciw/cciwmain/fixtures/basic.json

             "online_applications": true, 
             "number": 1, 
             "site": 1, 
-            "age": "Jnr", 
+            "minimum_age": 11, 
+            "maximum_age": 17, 
             "year": 2000, 
             "start_date": "2000-07-01", 
             "chaplain": null
             "online_applications": true, 
             "number": 1, 
             "site": 1, 
-            "age": "Jnr", 
+            "minimum_age": 11, 
+            "maximum_age": 17, 
             "year": 2001, 
             "start_date": "2001-07-01", 
             "chaplain": null

File cciw/officers/tests/applications.py

         past_camp_start = future_camp_start - datetime.timedelta(30 * 11)
 
         site = Site.objects.get(id=1)
-        c1 = Camp.objects.create(year=2010, number=5, age='Jnr',
+        c1 = Camp.objects.create(year=2010, number=5, minimum_age=11, maximum_age=17,
                                  start_date=past_camp_start,
                                  end_date=past_camp_start + datetime.timedelta(7),
                                  site=site)
-        c2 = Camp.objects.create(year=2011, number=1, age='Jnr',
+        c2 = Camp.objects.create(year=2011, number=1, minimum_age=11, maximum_age=17,
                                  start_date=future_camp_start,
                                  end_date=future_camp_start + datetime.timedelta(7),
                                  site=site)