from asaaspy.schemas.v3.my_account import MyAccountDocumentsViewSchema


class TestMyAccountResource:
    def test_my_account_get_documents_subaccount(self, asaas_svc_subaccount):
        return_data = asaas_svc_subaccount.my_account.get_pending_documents()
        assert isinstance(return_data, MyAccountDocumentsViewSchema)

        file1 = return_data.data[0]
        assert file1.id == "766a9870-4abc-4cce-b618-99f8b8cc9334"
        assert file1.status == "NOT_SENT"
        assert file1.type == "IDENTIFICATION"

    """
    def test_my_account_send_document(self, asaas_svc_subaccount, document_test_as_file_handler):
        return_data = asaas_svc_subaccount.my_account.send_document(
            document_id="766a9870-4abc-4cce-b618-99f8b8cc9334",
            type="IDENTIFICATION",
            file_handler=document_test_as_file_handler
        )
        assert isinstance(return_data, MyAccountSendDocumentViewSchema)
        assert return_data.status == "SUCCESS"
    """
