Ë
    º2Úiÿ  ã                   óP  — d dl Z d dlmZ d dlmZ d dlZd dlmZ d dlm	Z
 d dlmZ  ej                  dd«      Z ee j                  j!                  d	d
«      d«       G d„ de
«      «       Z	 ee j                  j!                  d	d
«      d«       G d„ de«      «       Z G d„ de«      Zy)é    N)Ú
skipUnless)ÚUser)Únotify)Ú	AdminTest)ÚNotificationTestÚnotificationsÚNotificationÚ
SAMPLE_APPFz5Running tests on standard django-notifications modelsc                   ó(   ‡ — e Zd Zeˆ fd„«       Zˆ xZS )r   c                 ó8   •— t         ‰| �  «        dt        _        y )NÚsample_notifications)ÚsuperÚ
setUpClassÚBaseAdminTestÚapp_name)ÚclsÚ	__class__s    €úe/var/www/html/acx/venv/lib/python3.12/site-packages/notifications/tests/sample_notifications/tests.pyr   zAdminTest.setUpClass   s   ø€ ä‰ÑÔØ!7ŒÕó    )Ú__name__Ú
__module__Ú__qualname__Úclassmethodr   Ú__classcell__)r   s   @r   r   r      s   ø„ ð ó8ó ô8r   r   c                   ó   — e Zd Zy)r   N)r   r   r   © r   r   r   r      s   „ àr   r   c                   ó   — e Zd Zd„ Zd„ Zy)ÚTestExtraDataCustomAccessorc           	      ó  — t         j                  j                  ddd¬«      | _        t         j                  j                  ddd¬«      | _        t        j                  | j                  | j                  d| j                  ddd	¬
«       y )NÚ
from_extraÚpwdzexample@example.com)ÚusernameÚpasswordÚemailÚto_extraÚ	commentedz'/learn/ask-a-pro/q/test-question-9/299/zHello my 'world'útest detail)Ú	recipientÚverbÚaction_objectÚurlÚother_contentÚdetails)r   ÚobjectsÚcreate_userÚ	from_userÚto_userr   Úsend)Úselfs    r   ÚsetUpz!TestExtraDataCustomAccessor.setUp   sl   € ÜŸ™×1Ñ1¸<ÐRWÐ_tÐ1ÓuˆŒÜ—|‘|×/Ñ/¸ÈeÐ[pÐ/ÓqˆŒÜ�‰Ø�N‰NØ—l‘lØØŸ.™.Ø9Ø,Ø!ö	
r   c                 ó¬   — t         j                  j                  d¬«      }|sJ d«       ‚|j                  dk(  sJ d«       ‚d|j                  vsJ d«       ‚y )Nr'   )r-   z?Expected a notification retrieved by custom extra data accessorz'Custom accessor should return set valuer-   z*Custom accessor should not be in json data)r	   r.   Úgetr-   Údata)r3   Únotifications     r   Útest_extra_dataz+TestExtraDataCustomAccessor.test_extra_data*   s]   € Ü#×+Ñ+×/Ñ/¸Ð/ÓFˆÙÐ^Ð^Ó^ˆ|Ø×#Ñ# }Ò4Ð_Ð6_Ó_Ð4Ø × 1Ñ 1Ñ1Ð_Ð3_Ó_Ñ1r   N)r   r   r   r4   r9   r   r   r   r   r      s   „ ò
ó`r   r   )ÚosÚunittestr   Údjango.contrib.auth.modelsr   ÚswapperÚnotifications.signalsr   Únotifications.tests.testsr   r   r   ÚBaseNotificationTestÚ
load_modelr	   Úenvironr6   r   r   r   r   ú<module>rC      s¤   ðÛ 	Ý å +Û å (Ý @Ý Nà!ˆw×!Ñ! /°>ÓB€ñ ˆB�J‰J�N‰N˜<¨Ó/Ð1hÓiô8�ó 8ó jð8ñ ˆB�J‰J�N‰N˜<¨Ó/Ð1hÓiô	Ð+ó 	ó jð	ô`Ð"2õ `r   