def setUp(self):
    self.maxDiff = None
    password = 'senha123'
    user = User(email='example@example.com', first_name='Nome', last_name='Sobrenome')
    user.set_password(password)
    user.save()
    self.do_login(user, password)
    self.talent = Talent.objects.create(user=user, price=1000, phone_number=1, area_code=1, main_social_media='', social_media_username='', number_of_followers=1)
    self.order = Order.objects.create(hash_id=uuid.uuid4(), talent_id=self.talent.id, video_is_for='someone_else', is_from='MJ', is_to='Peter', instruction="Go Get 'em, Tiger", email='example@example.com', is_public=True, expiration_datetime=(datetime.now(timezone.utc) + timedelta(days=4)))
    charge = Charge.objects.create(order=self.order, amount_paid=1000, payment_date=(datetime.now(timezone.utc) - timedelta(days=3)), status=DomainCharge.PRE_AUTHORIZED)
    CreditCard.objects.create(charge=charge, fullname='Peter Parker', birthdate='2019-12-31', tax_document='12346578910', credit_card_hash='<encrypted-credit-card-hash>')
    Buyer.objects.create(charge=charge, fullname='Mary Jane Watson', birthdate='2019-12-31', tax_document='09876543210')
    WirecardTransactionData.objects.create(order=self.order, wirecard_order_hash=FAKE_WIRECARD_ORDER_HASH, wirecard_payment_hash=FAKE_WIRECARD_PAYMENT_HASH)
    DefaultTalentProfitPercentage.objects.create(value='0.75')
    self.request_data = {'talent_id': self.talent.id, 'order_hash': self.order.hash_id, 'order_video': SimpleUploadedFile('file.mp4', b'filecontentstring')}
    self.agency = Agency.objects.create(name='Agency')
    AgencyProfitPercentage.objects.create(agency=self.agency, value='0.05')
def setUp(self):
    self.maxDiff = None
    password = 'senha123'
    user = User(email='example@example.com', first_name='Nome', last_name='Sobrenome')
    user.set_password(password)
    user.save()
    self.do_login(user, password)
    self.talent = Talent.objects.create(user=user, price=1000, phone_number=1, area_code=1, main_social_media=, social_media_username=, number_of_followers=1)
    self.order = Order.objects.create(hash_id=uuid.uuid4(), talent_id=self.talent.id, video_is_for='someone_else', is_from='MJ', is_to='Peter', instruction="Go Get 'em, Tiger", email='example@example.com', is_public=True, expiration_datetime=(datetime.now(timezone.utc) + timedelta(days=4)))
    charge = Charge.objects.create(order=self.order, amount_paid=1000, payment_date=(datetime.now(timezone.utc) - timedelta(days=3)), status=DomainCharge.PRE_AUTHORIZED)
    CreditCard.objects.create(charge=charge, fullname='Peter Parker', birthdate='2019-12-31', tax_document='12346578910', credit_card_hash='<encrypted-credit-card-hash>')
    Buyer.objects.create(charge=charge, fullname='Mary Jane Watson', birthdate='2019-12-31', tax_document='09876543210')
    WirecardTransactionData.objects.create(order=self.order, wirecard_order_hash=FAKE_WIRECARD_ORDER_HASH, wirecard_payment_hash=FAKE_WIRECARD_PAYMENT_HASH)
    DefaultTalentProfitPercentage.objects.create(value='0.75')
    self.request_data = {'talent_id': self.talent.id, 'order_hash': self.order.hash_id, 'order_video': SimpleUploadedFile('file.mp4', b'filecontentstring')}
    self.agency = Agency.objects.create(name='Agency')
    AgencyProfitPercentage.objects.create(agency=self.agency, value='0.05')