U
    Âmœd}  ã                   @   sN   d dl Z d dlZd dlZd dlZd dlZej dddg¡dd„ ƒZdd„ Z	dS )	é    NÚbackendZwebaggÚnbaggc                 C   s†   t  d¡ | dkrt  d¡ ttjƒ}tjdkr8d|d< | |d< dd	| › d
� d d| › d� }tjtj	d|g|d�}|dks‚t
‚d S )NÚtornador   ZIPythonÚntÚ ZDISPLAYZ
MPLBACKENDz
import os;z$assert os.environ['MPLBACKEND'] == 'z';z!import matplotlib.pyplot as plt; z!print(plt.get_backend());assert 'z' == plt.get_backend().lower();z-c)Úenvr   )ÚpytestZimportorskipÚdictÚosÚenvironÚnameÚ
subprocessÚcallÚsysÚ
executableÚAssertionError)r   r   Z	test_codeÚret© r   ú]/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/matplotlib/tests/test_backend_webagg.pyÚtest_webagg_fallback   s"    




ÿþ
ýÿr   c                  C   s   t jjj} | jd kst‚d S )N)Ú
matplotlibÚbackendsZbackend_webagg_coreZFigureManagerWebAggZ_toolbar2_classr   )Úfmr   r   r   Útest_webagg_core_no_toolbar   s    
r   )
r   r
   r   r   Z'matplotlib.backends.backend_webagg_corer   ÚmarkZparametrizer   r   r   r   r   r   Ú<module>   s   
