forked from erp-dev/erp
clean: after all tests and fix them.
This commit is contained in:
@@ -1007,7 +1007,7 @@ class PaymentOrderAPITestCase(TestCase):
|
||||
payload = {**self.payload, 'amount': '0'}
|
||||
response = self.client.post('/api/v1/payment-orders/', payload, format='json')
|
||||
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
|
||||
self.assertIn('amount 必须大于 0', response.data['error'])
|
||||
self.assertIn('amount 不能为 0', response.data['error'])
|
||||
|
||||
def test_payment_order_invalid_bank_account(self):
|
||||
other_merchant = Merchant.objects.create(name='其他商户', type=MerchantTypeEnum.FACTORY)
|
||||
@@ -1106,7 +1106,7 @@ class ReceiptOrderAPITestCase(TestCase):
|
||||
payload = {**self.payload, 'amount': '0'}
|
||||
response = self.client.post('/api/v1/receipt-orders/', payload, format='json')
|
||||
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
|
||||
self.assertIn('amount 必须大于 0', response.data['error'])
|
||||
self.assertIn('amount 不能为 0', response.data['error'])
|
||||
|
||||
def test_receipt_order_stores_bank_account_and_markup(self):
|
||||
response = self.client.post('/api/v1/receipt-orders/', self.payload, format='json')
|
||||
|
||||
Reference in New Issue
Block a user