
    IR-e                     ,    d dl mZ d dlZd dlmZ d ZdS )    )wrapsN)HAS_PYTEST_MPLc                                           dd                               di                                di           ddid<   fd}t          |           d	k    r ||  S |S )
z
    A decorator that defines a figure test.

    This automatically decorates tests with mpl_image_compare with common
    options used by all figure tests in astropy, and also adds the decorator
    to allow remote data to be accessed.
    	tolerancer   stylesavefig_kwargsSoftwareNmetadatac                     t           j        j        t          j        j        ddt           j                            t
           d          t                      fd                                                }|S )N)r   r   r   z+pytest-mpl is required for the figure tests)reasonc                       | i |S )N )argskwargstest_functions     =lib/python3.11/site-packages/astropy/tests/figures/helpers.pytest_wrapperz4figure_test.<locals>.decorator.<locals>.test_wrapper   s     !=$1&111    r   )pytestmarkremote_datampl_image_compareskipifr   r   )r   r   r   r   r   r   s   ` r   	decoratorzfigure_test.<locals>.decorator   s    		 		& 

u^

 

OU

 

 
		'T 
 

 

 
}			2 	2 	2 	2 
	

 



 

 
!	 	2 r      )poplen)r   r   r   r   r   r   s    ` @@@r   figure_testr   
   s     

;**IJJw##EZZ 0"55N",d!3N:         4yyA~~y$r   )	functoolsr   r   "astropy.utils.compat.optional_depsr   r   r   r   r   <module>r!      sM           = = = = = =$ $ $ $ $r   