tests/app/soc/logic/test_allocations.py
changeset 2139 43a02512ebf7
parent 2130 83f4fab7c556
child 2140 32b0731f0bf5
equal deleted inserted replaced
2138:70b4a5e90eb0 2139:43a02512ebf7
    64 
    64 
    65     self.slots = 60
    65     self.slots = 60
    66     self.max_slots_per_org = 40
    66     self.max_slots_per_org = 40
    67     self.min_slots_per_org = 2
    67     self.min_slots_per_org = 2
    68     self.allocated = 0
    68     self.allocated = 0
    69     self.iterative = False
    69     self.algorithm = 1
    70 
    70 
    71     apps = {
    71     apps = {
    72         'asf': (20, 20),
    72         'asf': (20, 20),
    73         'gcc': (15, 50),
    73         'gcc': (15, 50),
    74         'git': (6, 6),
    74         'git': (6, 6),
    81 
    81 
    82     self.orgs = self.popularity.keys()
    82     self.orgs = self.popularity.keys()
    83 
    83 
    84     self.allocater = allocations.Allocator(
    84     self.allocater = allocations.Allocator(
    85         self.orgs, self.popularity, self.mentors, self.slots,
    85         self.orgs, self.popularity, self.mentors, self.slots,
    86         self.max_slots_per_org, self.min_slots_per_org, self.iterative)
    86         self.max_slots_per_org, self.min_slots_per_org, self.algorithm)
    87 
    87 
    88   def testInitialAllocation(self):
    88   def testInitialAllocation(self):
    89     """Test that an allocation with no arguments does not crash.
    89     """Test that an allocation with no arguments does not crash.
    90     """
    90     """
    91 
    91