Пример #1
0
 def __init__(self, request):
     skills = Skills(request)
     self.race = skills.get_race()
     self.skills = skills.get_skills()
     self.multiplier = skills.get_multiplier()
     self.fill_skills = skills.get_fill_skills()
     self.default_level = self.predict_level("default")
     self.desired_level = self.predict_desired_level(request)
     self.commands = self.commands_list()
Пример #2
0
 def test_have_default_fill_skills(self):
     request = self.FakeRequest()
     skills = Skills(request)
     self.assertEqual(skills.get_fill_skills(), None)
Пример #3
0
 def test_can_get_fill_skills(self):
     request = self.FakeRequest()
     request.session.update({"fill_skills": "true"})
     skills = Skills(request)
     self.assertEqual(skills.get_fill_skills(), "true")