Ejemplo n.º 1
0
 def test_invoice_on_unpayment_invoice_task(
         self, unpayment_task_builder_function):
     self.invoice.invoice_ok = True
     self.invoice.save()
     create_invoice_affect_set(self.invoice)
     calculate_super_user_task()
     unpayment_task_builder_function.assert_called_once_with(self.invoice)
Ejemplo n.º 2
0
 def setUp(self):
     create_organizer_set(auto_create_user_set=True)
     self.user = User.objects.first()
     create_event_set(self.user)
     associate_events_organizers()
     self.invoice = create_sponsoring_invoice(auto_create_sponsoring_and_sponsor=True)
     create_invoice_affect_set(self.invoice, total_amount=False)
     self.invoice.invoice_ok = True
     self.invoice.partial_payment = True
     self.invoice.save()
Ejemplo n.º 3
0
 def test_invoice_on_to_complete_invoice_task(
         self, invoices_to_complete_builder_function,
         unpayment_task_builder_function):
     self.invoice.invoice_ok = True
     self.invoice.save()
     create_invoice_affect_set(self.invoice, total_amount=True)
     calculate_super_user_task()
     invoices_to_complete_builder_function.assert_called_once_with(
         self.invoice)
     self.assertFalse(unpayment_task_builder_function.called)