
    &g"                         d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z
 d dlmZ d dlmZmZ  G d de      Z G d	 d
e      Zej$                  ej&                  ej$                  dZy)    )mktemp)TestCase)
management)models)AppIndexDashboard)DashboardModuleGroupc                       e Zd Zd Zy)ManagementCommandTestc                     t               }t        j                  d|       	 t        j                  d|       J # t        $ r Y y w xY w)Ncustomdashboard)r   r   call_command	Exception)self	file_names     T/var/www/html/djangosite/lib/python3.12/site-packages/admin_tools/dashboard/tests.pytest_customdashboardz*ManagementCommandTest.test_customdashboard   sG    H	 19=	##$5yA5 		s   : 	AAN)__name__
__module____qualname__r        r   r   r      s    	r   r   c                       e Zd Zd Zy)AppIndexDashboardTestc                     ddg}t        d|      }| j                  |j                         t        j                  t        j
                  g       y )Nzdjango.contrib.auth.models.Userz django.contrib.auth.models.GroupAuth)r   assertEqualget_app_model_classesauth_modelsUserr	   )r   r   boards      r   test_modelsz!AppIndexDashboardTest.test_models   sK    -.
 "&&1''){001	
r   N)r   r   r   r"   r   r   r   r   r      s    	
r   r   )zDashboardModule.is_emptyz"DashboardModule.render_css_classeszGroup.is_emptyN)tempfiler   unittestr   django.testDjangoTestCasedjango.corer   django.contrib.authr   r   admin_tools.dashboardr   admin_tools.dashboard.modulesr   r	   r   r   is_emptyrender_css_classes__test__r   r   r   <module>r.      sT      2 " 5 3 @
N 


H 

 !0 8 8*9*L*Lnnr   