def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) student = mommy.make(Student, name='Aluno') self.payment = Payment.objects.create(student=student, value=80, due_date=date.today()) self.resp = self.client.get(r('billing:payment_list'))
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) student = mommy.make(Student, academy=academy) payment = mommy.make(Payment, student=student) self.data = dict(month='01', year='2001', payment=payment.pk, paid=True) self.resp = self.client.post(r('billing:invoice_new'), self.data)
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) student = mommy.make(Student, academy=academy) payment = mommy.make(Payment, student=student) self.invoice = mommy.make(Invoice, payment=payment, month='12', year='2001') self.resp = self.client.get(r('billing:invoice_update', self.invoice.pk))
def setUp(self): academy = create_academy() self.modality = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.trainer = Trainer.objects.create(name='LucasFarias', academy=academy) self.trainer.modalities.add(self.modality) self.teamclass = TeamClass.objects.create(name='turma1', modality=self.modality, academy=academy, ) self.teamclass.trainer.add(self.trainer) login_system(academy, self.client) self.student = Student.objects.create(name='Lucas', birth_date='1987-03-23', phone='7191625771', sexo='M', academy=academy ) self.student.team_class.add(self.teamclass) self.data = dict(name='Lucas Novo', email='*****@*****.**', birth_date='1987-03-23', phone='71919191919', sexo='M', team_class=self.teamclass.pk ) self.resp = self.client.post(r('student_update', self.student.pk), self.data)
def setUp(self): academy = create_academy() login_system(academy, self.client) self.modalities = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.resp = self.client.get(r('modalities_update', self.modalities.pk))
def setUp(self): academy = create_academy() login_system(academy, self.client) self.modalities = Modalities.objects.create(name="boxe", description="luta de boxe", academy=academy) self.modalitiesprice = ModalitiesPrice.objects.create(modality=self.modalities, price=80, academy=academy) self.resp = self.client.get(r("billing:modalitiesprice_update", self.modalitiesprice.pk))
def setUp(self): academy = create_academy() login_system(academy, self.client) self.modalities = Modalities.objects.create(name="boxe", description="luta de boxe", academy=academy) self.data = dict(modality=self.modalities.pk, price=80) self.resp = self.client.post(r("billing:modalitiesprice_new"), self.data)
def setUp(self): academy = create_academy() self.m1 = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) login_system(academy, self.client) self.data = dict(name="João") self.resp = self.client.post(r('trainer_new'), self.data)
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) student = mommy.make(Student, academy=academy) payment = mommy.make(Payment, student=student) self.invoice = mommy.make(Invoice, month='01', year='2001', payment=payment, paid=False) self.data = dict(month='01', year='2001', payment=payment.pk, paid='on') self.resp = self.client.post(r('billing:invoice_update', self.invoice.pk), self.data)
def setUp(self): academy = create_academy() login_system(academy, self.client) m1 = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.trainer = Trainer.objects.create(name='joão', academy=academy) self.data = dict(name="joão mudei", modalities=[m1.pk]) self.resp = self.client.post(r('trainer_update', self.trainer.pk), self.data)
def setUp(self): academy = create_academy() m1 = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.trainer = Trainer.objects.create(academy=academy) self.trainer.modalities.add(m1) login_system(academy, self.client) self.resp = self.client.get(r('trainer_list'))
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) modality = mommy.make(Modalities, academy=academy) modalityprice = mommy.make(ModalitiesPrice, modality=modality, academy=academy) teamclass = mommy.make(TeamClass, academy=academy, modality=modality) student = mommy.make(Student, academy=academy) student.team_class.add(teamclass) self.data = dict(student=1, due_date=date.today(), discount=0) self.resp = self.client.post(r('billing:payment_new'), self.data)
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) modality = mommy.make(Modalities, academy=academy) modalityprice = mommy.make(ModalitiesPrice, modality=modality, academy=academy) teamclass = mommy.make(TeamClass, academy=academy, modality=modality) self.student = mommy.make(Student, academy=academy, name='lucas') self.student.team_class.add(teamclass) payment = mommy.make(Payment, student=self.student) self.resp = self.client.get(r('billing:payment_update', payment.pk))
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) modality = mommy.make(Modalities, academy=academy) modalityprice = mommy.make(ModalitiesPrice, modality=modality, academy=academy) teamclass = mommy.make(TeamClass, academy=academy, modality=modality) self.student = mommy.make(Student, academy=academy, name='lucas') self.student.team_class.add(teamclass) payment = mommy.make(Payment, student=self.student) self.data = dict(student=1, due_date=date.today() + timedelta(2), discount=10) self.resp = self.client.post(r('billing:payment_update', payment.pk), self.data)
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) student = mommy.make(Student, name='Aluno') self.payment = Payment.objects.create(student=student, value=80, due_date=date.today()) self.invoice = mommy.make(Invoice, month='01', year='2001', payment=self.payment, paid=True, paid_day=date.today()) self.resp = self.client.get(r('billing:invoice_list'))
def setUp(self): academy = create_academy() self.modality = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.trainer = Trainer.objects.create(name='LucasFarias', academy=academy) self.trainer.modalities.add(self.modality) login_system(academy, self.client) self.data = dict(name="turma1") self.resp = self.client.post(r('teamclass_new'), self.data)
def setUp(self): academy = create_academy() self.modality = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.trainer = Trainer.objects.create(name='LucasFarias', academy=academy) self.trainer.modalities.add(self.modality) login_system(academy, self.client) self.teamclass = TeamClass.objects.create(name='turma1', modality=self.modality, academy=academy) self.data = dict(name="turma1-change", modality=self.modality.pk, trainer=self.trainer.pk) self.resp = self.client.post(r('teamclass_update', self.teamclass.pk), self.data)
def setUp(self): academy = create_academy() self.modality = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.trainer = Trainer.objects.create(name='LucasFarias', academy=academy) self.trainer.modalities.add(self.modality) self.teamclass = TeamClass.objects.create(name='turma1', modality=self.modality, academy=academy, ) self.teamclass.trainer.add(self.trainer) login_system(academy, self.client) self.resp = self.client.get(r('teamclass_list'))
def setUp(self): academy = create_academy() self.modality = Modalities.objects.create(name='boxe', description='luta de boxe', academy=academy) self.trainer = Trainer.objects.create(name='LucasFarias', academy=academy) self.trainer.modalities.add(self.modality) self.teamclass = TeamClass.objects.create(name='turma1', modality=self.modality, academy=academy, ) self.teamclass.trainer.add(self.trainer) login_system(academy, self.client) self.data = dict(name='Lucas', birth_date='1987-03-23', phone='7191625771', sexo='M' ) self.resp = self.client.post(r('student_new'), self.data)
def setUp(self): academy = create_academy() login_system(academy, self.client) self.resp = self.client.post(r('modalities_new'), {})
def setUp(self): academy = create_academy() login_system(academy, self.client) self.data = dict(name="Boxe", description='luta de boxe') self.resp = self.client.post(r('modalities_new'), self.data)
def setUp(self): academy = mommy.make(Academy) login_system(academy, self.client) self.resp = self.client.get(r('billing:invoice_new'))
def setUp(self): academy = create_academy() login_system(academy, self.client) self.trainer = Trainer.objects.create(name='joão', academy=academy) self.resp = self.client.get(r('trainer_update', self.trainer.pk))
def setUp(self): academy = create_academy() login_system(academy, self.client) self.resp = self.client.get(r("billing:modalitiesprice_new"))