"""Functional tests for payee_kyc_notification.""" from payee.schemas.payee_kyc_notification import PayeeKycNotificationOutputSchema from tests.utils.factories import PayeeKycNotificationFactory def test_get_payee_kyc_notification( fresh_db, account_fixtures, payoneer_program_fixtures, account_payee_fixtures, payee_fixtures, payee_collaborator_fixtures, fixture_client, ): """Test get latest payee KYC notification.""" notification = PayeeKycNotificationFactory.create() res = fixture_client.post( f'/payee/kyc-notification/dataloader', json={'payee_ids': [1]} ) assert res.status_code == 200 assert res.json == { 'payee_kyc_notifications': [ {'data': PayeeKycNotificationOutputSchema().dump(notification)} ] }