
    )Jf                     T    d dl Z d dlmZ d dlmZ d dlmZ  G d de          Zd ZdS )    N)AbstractUser)models)EmailAddressc                   d    e Zd Z ej        dej        d          Z G d dej	                  Z	dS )UUIDUserTF)primary_keydefaulteditablec                       e Zd ZdZdS )UUIDUser.MetaAUTH_USER_MODELN)__name__
__module____qualname__	swappable     d/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/account/tests/test_models.pyMetar      s        %			r   r   N)
r   r   r   r   	UUIDFielduuiduuid4idr   r   r   r   r   r   r   	   s\        		dDJ	O	O	OB& & & & &|  & & & & &r   r   c                 x   d|_         |                     d          }t          j                            |                                          dk    sJ t          j                            ||d          }|j        rJ |j        rJ t          j                            |                                          dk    sJ t          j                            ||d           t          j                            |                                          dk    sJ |	                                 |j
        dk    sJ d S )NT/)user   znew@email.org   znew2@email.org)ACCOUNT_CHANGE_EMAILgetr   objectsfiltercountadd_new_emailverifiedprimaryrefresh_from_dbemail)rfr   settingsrequest	new_emails        r   test_add_new_emailr-      s,   $(H!ffSkkG&&D&117799Q>>>>$227D/RRI!!!!    &&D&117799Q>>>>&&w6FGGG&&D&117799Q>>>>?.......r   )	r   django.contrib.auth.modelsr   	django.dbr   allauth.account.modelsr   r   r-   r   r   r   <module>r1      s     3 3 3 3 3 3       / / / / / /& & & & &| & & &/ / / / /r   