fix fish variz name, dalilrad, sms, bale
This commit is contained in:
1 parent
90931a5a64
commit
35a1ec1794
30 files changed
+674
-39
No files matched your search
@@ -101,7 +101,7 @@ def case(settings, tmp_path):
|
||||
|
||||
def data(case, linked=True, **extra):
|
||||
today = jdatetime.date.fromgregorian(date=timezone.localdate())
|
||||
return {'receipt_mode':'linked' if linked else 'independent','notice_id':case['notice'].pk if linked else '',
|
||||
return {'depositor_name':'واریزکننده آزمایشی','receipt_mode':'linked' if linked else 'independent','notice_id':case['notice'].pk if linked else '',
|
||||
'paid_amount':'۱۲۳۴۵','destination_account':case['account'].pk,'deposit_id':'000123',
|
||||
'paid_day':str(today.day),'paid_month':str(today.month),'paid_year':str(today.year),
|
||||
'submission_key':str(uuid.uuid4()), **extra}
|
||||
@@ -200,7 +200,7 @@ def test_policy_members_can_reject_without_extra_permissions(case, client, key):
|
||||
detail = client.get(reverse('staff_payments:receipt_detail', args=[receipt.public_id]))
|
||||
assert 'رد فیش' in detail.content.decode()
|
||||
response = client.post(reverse('staff_payments:decision', args=[receipt.public_id]),
|
||||
{'version': 1, 'action': 'REJECT', 'reason': 'تصویر ناخوانا است'})
|
||||
{'version': 1, 'action': 'REJECT', 'reason': 'تصویر ناخوانا است', 'confirm_rejection': '1'})
|
||||
assert response.status_code == 302
|
||||
receipt.refresh_from_db()
|
||||
assert receipt.status == 'REJECTED'
|
||||
|
||||
Reference in new issue
Block a user