"""Unit tests for payment_group_payment_account_detail schemas.""" from payment.schemas.payment_group_payment_account_detail import ( PaymentDebitCreditDataEntrySchema, ) def test_payment_debit_credit_data_entry_schema(faker): """Test PaymentDebitCreditDataEntrySchema.""" mock_dump = { 'account_id': faker.pyint(), 'contract_id': faker.pyint(), 'currency_code': faker.pystr(), 'amount': faker.pydecimal(), 'worksheet_account_contract_payable_after_tax_id': faker.pyint(), } res = PaymentDebitCreditDataEntrySchema().dump(mock_dump) assert res == {**mock_dump, 'amount': str(mock_dump['amount'])}