"""Test reference_payment_type schemas.""" from abacus_contract.schemas.reference_payment_type import ( ReferencePaymentTypeSchema ) from tests.utils.factories import ReferencePaymentTypeFactory def test_reference_payment_type_schema(): """Test ReferencePaymentTypeSchema schema.""" payment_method = ReferencePaymentTypeFactory.create() res = ReferencePaymentTypeSchema().dump(payment_method) assert res[ 'reference_payment_type_id' ] == payment_method.reference_payment_type_id assert res['payment_type'] == payment_method.payment_type assert res['payment_service'] == payment_method.payment_service assert res['is_internal'] == payment_method.is_internal assert res['notes'] == payment_method.notes